Skip to content

Commit 0e873c3

Browse files
avivkellerruyadorno
authored andcommitted
test: update console wpt
PR-URL: #55192 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent 07c2fb2 commit 0e873c3

5 files changed

+25
-3
lines changed

test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Last update:
1212

1313
- common: https://github.com/web-platform-tests/wpt/tree/dbd648158d/common
1414
- compression: https://github.com/web-platform-tests/wpt/tree/da8d6860b2/compression
15-
- console: https://github.com/web-platform-tests/wpt/tree/767ae35464/console
15+
- console: https://github.com/web-platform-tests/wpt/tree/e48251b778/console
1616
- dom/abort: https://github.com/web-platform-tests/wpt/tree/0143fe244b/dom/abort
1717
- dom/events: https://github.com/web-platform-tests/wpt/tree/0a811c5161/dom/events
1818
- encoding: https://github.com/web-platform-tests/wpt/tree/1ac8deee08/encoding

test/fixtures/wpt/console/console-countReset-logging-manual.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,25 @@
2424
console.count();
2525
console.countReset();
2626
console.count();
27+
console.countReset();
2728

2829
console.count(undefined);
2930
console.countReset(undefined);
3031
console.count(undefined);
32+
console.countReset(undefined);
3133

3234
console.count("default");
3335
console.countReset("default");
3436
console.count("default");
37+
console.countReset("default");
3538

3639
console.count({toString() {return "default"}});
3740
console.countReset({toString() {return "default"}});
3841
console.count({toString() {return "default"}});
42+
console.countReset({toString() {return "default"}});
3943

4044
console.count("a label");
41-
console.countReset();
45+
console.countReset("a label");
4246
console.count("a label");
4347

4448
console.countReset("b"); // should produce a warning
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// META: global=window,dedicatedworker,shadowrealm
2+
"use strict";
3+
// https://console.spec.whatwg.org/
4+
5+
test(() => {
6+
console.log(new Array(10000000).fill("x"));
7+
console.log(new Uint8Array(10000000));
8+
}, "Logging large arrays works");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// META: global=window,dedicatedworker,shadowrealm
2+
"use strict";
3+
// https://console.spec.whatwg.org/
4+
5+
test(() => {
6+
console.log(Symbol());
7+
console.log(Symbol("abc"));
8+
console.log(Symbol.for("def"));
9+
console.log(Symbol.isConcatSpreadable);
10+
}, "Logging a symbol doesn't throw");

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"path": "compression"
99
},
1010
"console": {
11-
"commit": "767ae354642bee1e4d90b28df4480475b9260e14",
11+
"commit": "e48251b77834f9689e9df3f49b93b3387dee72d6",
1212
"path": "console"
1313
},
1414
"dom/abort": {

0 commit comments

Comments
 (0)