From 79445cb21576939ba8431c4e178bb9f8eee77074 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Tue, 2 Aug 2022 10:02:20 -0400 Subject: [PATCH] test: update console web platform tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/44100 Reviewed-By: Feng Yu Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca --- test/fixtures/wpt/README.md | 2 +- .../fixtures/wpt/console/console-is-a-namespace.any.js | 3 ++- .../wpt/console/console-log-shadowrealm-manual.html | 10 ++++++++++ .../console-namespace-object-class-string.any.js | 2 +- .../wpt/console/console-tests-historical.any.js | 1 + .../wpt/console/idlharness-shadowrealm.window.js | 5 +++++ test/fixtures/wpt/versions.json | 2 +- 7 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 test/fixtures/wpt/console/console-log-shadowrealm-manual.html create mode 100644 test/fixtures/wpt/console/idlharness-shadowrealm.window.js diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 8e5c4f9282f9e4..250090ddbb90b9 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -11,7 +11,7 @@ See [test/wpt](../../wpt/README.md) for information on how these tests are run. Last update: - common: https://github.com/web-platform-tests/wpt/tree/03c5072aff/common -- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console +- console: https://github.com/web-platform-tests/wpt/tree/767ae35464/console - dom/abort: https://github.com/web-platform-tests/wpt/tree/c49cafb491/dom/abort - dom/events: https://github.com/web-platform-tests/wpt/tree/f8821adb28/dom/events - encoding: https://github.com/web-platform-tests/wpt/tree/c1b24fce6e/encoding diff --git a/test/fixtures/wpt/console/console-is-a-namespace.any.js b/test/fixtures/wpt/console/console-is-a-namespace.any.js index a4aae7ffce8ac8..1756ba6bc1b27d 100644 --- a/test/fixtures/wpt/console/console-is-a-namespace.any.js +++ b/test/fixtures/wpt/console/console-is-a-namespace.any.js @@ -1,5 +1,6 @@ +// META: global=window,dedicatedworker,shadowrealm "use strict"; -// https://heycam.github.io/webidl/#es-namespaces +// https://webidl.spec.whatwg.org/#es-namespaces // https://console.spec.whatwg.org/#console-namespace test(() => { diff --git a/test/fixtures/wpt/console/console-log-shadowrealm-manual.html b/test/fixtures/wpt/console/console-log-shadowrealm-manual.html new file mode 100644 index 00000000000000..b091a850c0c94f --- /dev/null +++ b/test/fixtures/wpt/console/console-log-shadowrealm-manual.html @@ -0,0 +1,10 @@ + + +Console Logging Manual Test +

Open the console inside the developer tools. It should contain one entry saying "test passed".

+ diff --git a/test/fixtures/wpt/console/console-namespace-object-class-string.any.js b/test/fixtures/wpt/console/console-namespace-object-class-string.any.js index 7b27e72d819251..d3ff7f7d076361 100644 --- a/test/fixtures/wpt/console/console-namespace-object-class-string.any.js +++ b/test/fixtures/wpt/console/console-namespace-object-class-string.any.js @@ -1,5 +1,5 @@ "use strict"; -// https://heycam.github.io/webidl/#es-namespaces +// https://webidl.spec.whatwg.org/#es-namespaces // https://console.spec.whatwg.org/#console-namespace test(() => { diff --git a/test/fixtures/wpt/console/console-tests-historical.any.js b/test/fixtures/wpt/console/console-tests-historical.any.js index 4c4d4c276d0cd4..1b18a9879fb080 100644 --- a/test/fixtures/wpt/console/console-tests-historical.any.js +++ b/test/fixtures/wpt/console/console-tests-historical.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm /** * These tests assert the non-existence of certain * legacy Console methods that are not included in diff --git a/test/fixtures/wpt/console/idlharness-shadowrealm.window.js b/test/fixtures/wpt/console/idlharness-shadowrealm.window.js new file mode 100644 index 00000000000000..8f68252dcd2b13 --- /dev/null +++ b/test/fixtures/wpt/console/idlharness-shadowrealm.window.js @@ -0,0 +1,5 @@ +// META: script=/resources/idlharness-shadowrealm.js + +// https://console.spec.whatwg.org/ + +idl_test_shadowrealm(["console"], []); diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index 9a8ed7c4816001..fcfd7b302751bd 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -4,7 +4,7 @@ "path": "common" }, "console": { - "commit": "3b1f72e99a91d31551edd2147dc7b564eaf25d72", + "commit": "767ae354642bee1e4d90b28df4480475b9260e14", "path": "console" }, "dom/abort": {