Skip to content

Commit 6a20cbb

Browse files
anonrigguangwong
authored andcommitted
test: update console web platform tests
PR-URL: nodejs/node#44100 Reviewed-By: Feng Yu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6e17dfa commit 6a20cbb

7 files changed

+21
-4
lines changed

test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ See [test/wpt](../../wpt/README.md) for information on how these tests are run.
1111
Last update:
1212

1313
- common: https://github.com/web-platform-tests/wpt/tree/03c5072aff/common
14-
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
14+
- console: https://github.com/web-platform-tests/wpt/tree/767ae35464/console
1515
- dom/abort: https://github.com/web-platform-tests/wpt/tree/c49cafb491/dom/abort
1616
- dom/events: https://github.com/web-platform-tests/wpt/tree/f8821adb28/dom/events
1717
- encoding: https://github.com/web-platform-tests/wpt/tree/c1b24fce6e/encoding

test/fixtures/wpt/console/console-is-a-namespace.any.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
// META: global=window,dedicatedworker,shadowrealm
12
"use strict";
2-
// https://heycam.github.io/webidl/#es-namespaces
3+
// https://webidl.spec.whatwg.org/#es-namespaces
34
// https://console.spec.whatwg.org/#console-namespace
45

56
test(() => {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<mete charset=utf-8>
3+
<title>Console Logging Manual Test</title>
4+
<p>Open the console inside the developer tools. It should contain one entry saying "test passed".</p>
5+
<script>
6+
const sr = new ShadowRealm();
7+
sr.evaluate(`
8+
console.log("test passed");
9+
`);
10+
</script>

test/fixtures/wpt/console/console-namespace-object-class-string.any.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
// https://heycam.github.io/webidl/#es-namespaces
2+
// https://webidl.spec.whatwg.org/#es-namespaces
33
// https://console.spec.whatwg.org/#console-namespace
44

55
test(() => {

test/fixtures/wpt/console/console-tests-historical.any.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// META: global=window,dedicatedworker,shadowrealm
12
/**
23
* These tests assert the non-existence of certain
34
* legacy Console methods that are not included in
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// META: script=/resources/idlharness-shadowrealm.js
2+
3+
// https://console.spec.whatwg.org/
4+
5+
idl_test_shadowrealm(["console"], []);

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"path": "common"
55
},
66
"console": {
7-
"commit": "3b1f72e99a91d31551edd2147dc7b564eaf25d72",
7+
"commit": "767ae354642bee1e4d90b28df4480475b9260e14",
88
"path": "console"
99
},
1010
"dom/abort": {

0 commit comments

Comments
 (0)