Skip to content

Commit bcb94aa

Browse files
anonrigdanielleadams
authored andcommitted
test: update console web platform tests
PR-URL: #44100 Reviewed-By: Feng Yu <F3n67u@outlook.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent c975427 commit bcb94aa

7 files changed

+21
-4
lines changed

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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(() => {
Lines changed: 10 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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
Lines changed: 5 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy