Skip to content

Commit 257b1ab

Browse files
targosdanielleadams
authored andcommitted
test: update Web Platform Tests
Update all checked-in WPT to the latest upstream commit. PR-URL: #37620 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent ebc6f41 commit 257b1ab

File tree

6 files changed

+224
-11
lines changed

6 files changed

+224
-11
lines changed

test/fixtures/wpt/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ See [test/wpt](../../wpt/README.md) for information on how these tests are run.
1010

1111
Last update:
1212

13-
- common: https://github.com/web-platform-tests/wpt/tree/3586ff740b/common
13+
- common: https://github.com/web-platform-tests/wpt/tree/bb97a68974/common
1414
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
1515
- dom/abort: https://github.com/web-platform-tests/wpt/tree/625e1310ce/dom/abort
1616
- encoding: https://github.com/web-platform-tests/wpt/tree/35f70910d3/encoding
1717
- FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4/FileAPI
1818
- hr-time: https://github.com/web-platform-tests/wpt/tree/9910784394/hr-time
1919
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
2020
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers
21-
- interfaces: https://github.com/web-platform-tests/wpt/tree/8602e9c9a1/interfaces
22-
- resources: https://github.com/web-platform-tests/wpt/tree/e366371a19/resources
23-
- url: https://github.com/web-platform-tests/wpt/tree/59d28c8f2d/url
21+
- interfaces: https://github.com/web-platform-tests/wpt/tree/79fa4cf76e/interfaces
22+
- resources: https://github.com/web-platform-tests/wpt/tree/972ca5b669/resources
23+
- url: https://github.com/web-platform-tests/wpt/tree/33f2e3f2e7/url
2424

2525
[Web Platform Tests]: https://github.com/web-platform-tests/wpt
2626
[`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt

test/fixtures/wpt/common/security-features/tools/spec.src.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,23 @@
9494
"delivery_value": "*",
9595
"redirection": "*",
9696
"subresource": [
97-
"area-tag",
9897
"a-tag",
98+
"area-tag",
99+
"audio-tag",
100+
"beacon",
99101
"fetch",
100102
"iframe-tag",
101103
"img-tag",
104+
"link-css-tag",
105+
"link-prefetch-tag",
106+
"object-tag",
107+
"picture-tag",
102108
"script-tag",
103109
"sharedworker-classic",
104110
"sharedworker-import",
105111
"sharedworker-import-data",
106112
"sharedworker-module",
113+
"video-tag",
107114
"worker-classic",
108115
"worker-import",
109116
"worker-import-data",
@@ -127,6 +134,27 @@
127134
"cross-ws-downgrade"
128135
],
129136
"expectation": "*"
137+
},
138+
{
139+
// Worklets are HTTPS contexts only
140+
"expansion": "*",
141+
"source_scheme": "http",
142+
"source_context_list": "*",
143+
"delivery_type": "*",
144+
"delivery_value": "*",
145+
"redirection": "*",
146+
"subresource": [
147+
"worklet-animation",
148+
"worklet-animation-import-data",
149+
"worklet-audio",
150+
"worklet-audio-import-data",
151+
"worklet-layout",
152+
"worklet-layout-import-data",
153+
"worklet-paint",
154+
"worklet-paint-import-data"
155+
],
156+
"origin": "*",
157+
"expectation": "*"
130158
}
131159
],
132160
"source_context_schema": {

test/fixtures/wpt/interfaces/html.idl

+3-1
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ interface HTMLSourceElement : HTMLElement {
397397
[CEReactions] attribute USVString srcset;
398398
[CEReactions] attribute DOMString sizes;
399399
[CEReactions] attribute DOMString media;
400+
[CEReactions] attribute unsigned long width;
401+
[CEReactions] attribute unsigned long height;
400402
};
401403

402404
[Exposed=Window,
@@ -467,7 +469,6 @@ interface HTMLObjectElement : HTMLElement {
467469
[CEReactions] attribute USVString data;
468470
[CEReactions] attribute DOMString type;
469471
[CEReactions] attribute DOMString name;
470-
[CEReactions] attribute DOMString useMap;
471472
readonly attribute HTMLFormElement? form;
472473
[CEReactions] attribute DOMString width;
473474
[CEReactions] attribute DOMString height;
@@ -2524,6 +2525,7 @@ partial interface HTMLObjectElement {
25242525
[CEReactions] attribute unsigned long vspace;
25252526
[CEReactions] attribute DOMString codeBase;
25262527
[CEReactions] attribute DOMString codeType;
2528+
[CEReactions] attribute DOMString useMap;
25272529

25282530
[CEReactions] attribute [LegacyNullToEmptyString] DOMString border;
25292531
};

test/fixtures/wpt/resources/testharness.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,10 @@ policies and contribution forms [3].
19291929
throw new AssertionError(errors.join("\n\n"));
19301930
}
19311931
}
1932-
expose_assert(assert_any, "assert_any");
1932+
// FIXME: assert_any cannot use expose_assert, because assert_wrapper does
1933+
// not support nested assert calls (e.g. to assert_func). We need to
1934+
// support bypassing assert_wrapper for the inner asserts here.
1935+
expose(assert_any, "assert_any");
19331936

19341937
/**
19351938
* Assert that a feature is implemented, based on a 'truthy' condition.

test/fixtures/wpt/url/resources/urltestdata.json

+180
Original file line numberDiff line numberDiff line change
@@ -7429,5 +7429,185 @@
74297429
"protocol": "https:",
74307430
"search": "",
74317431
"username": "user"
7432+
},
7433+
"Tests for the distinct percent-encode sets",
7434+
{
7435+
"input": "foo:// !\"$%&'()*+,-.;<=>@[\\]^_`{|}~@host/",
7436+
"base": "about:blank",
7437+
"hash": "",
7438+
"host": "host",
7439+
"hostname": "host",
7440+
"href": "foo://%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~@host/",
7441+
"origin": "null",
7442+
"password": "",
7443+
"pathname": "/",
7444+
"port":"",
7445+
"protocol": "foo:",
7446+
"search": "",
7447+
"username": "%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~"
7448+
},
7449+
{
7450+
"input": "wss:// !\"$%&'()*+,-.;<=>@[]^_`{|}~@host/",
7451+
"base": "about:blank",
7452+
"hash": "",
7453+
"host": "host",
7454+
"hostname": "host",
7455+
"href": "wss://%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~@host/",
7456+
"origin": "wss://host",
7457+
"password": "",
7458+
"pathname": "/",
7459+
"port":"",
7460+
"protocol": "wss:",
7461+
"search": "",
7462+
"username": "%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~"
7463+
},
7464+
{
7465+
"input": "foo://joe: !\"$%&'()*+,-.:;<=>@[\\]^_`{|}~@host/",
7466+
"base": "about:blank",
7467+
"hash": "",
7468+
"host": "host",
7469+
"hostname": "host",
7470+
"href": "foo://joe:%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~@host/",
7471+
"origin": "null",
7472+
"password": "%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~",
7473+
"pathname": "/",
7474+
"port":"",
7475+
"protocol": "foo:",
7476+
"search": "",
7477+
"username": "joe"
7478+
},
7479+
{
7480+
"input": "wss://joe: !\"$%&'()*+,-.:;<=>@[]^_`{|}~@host/",
7481+
"base": "about:blank",
7482+
"hash": "",
7483+
"host": "host",
7484+
"hostname": "host",
7485+
"href": "wss://joe:%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~@host/",
7486+
"origin": "wss://host",
7487+
"password": "%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~",
7488+
"pathname": "/",
7489+
"port":"",
7490+
"protocol": "wss:",
7491+
"search": "",
7492+
"username": "joe"
7493+
},
7494+
{ "input": "foo://!\"$%&'()*+,-.;=_`{}~/",
7495+
"base": "about:blank",
7496+
"hash": "",
7497+
"host": "!\"$%&'()*+,-.;=_`{}~",
7498+
"hostname": "!\"$%&'()*+,-.;=_`{}~",
7499+
"href":"foo://!\"$%&'()*+,-.;=_`{}~/",
7500+
"origin": "null",
7501+
"password": "",
7502+
"pathname": "/",
7503+
"port":"",
7504+
"protocol": "foo:",
7505+
"search": "",
7506+
"username": ""
7507+
},
7508+
{
7509+
"input": "wss://!\"$&'()*+,-.;=_`{}~/",
7510+
"base": "about:blank",
7511+
"hash": "",
7512+
"host": "!\"$&'()*+,-.;=_`{}~",
7513+
"hostname": "!\"$&'()*+,-.;=_`{}~",
7514+
"href":"wss://!\"$&'()*+,-.;=_`{}~/",
7515+
"origin": "wss://!\"$&'()*+,-.;=_`{}~",
7516+
"password": "",
7517+
"pathname": "/",
7518+
"port":"",
7519+
"protocol": "wss:",
7520+
"search": "",
7521+
"username": ""
7522+
},
7523+
{
7524+
"input": "foo://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~",
7525+
"base": "about:blank",
7526+
"hash": "",
7527+
"host": "host",
7528+
"hostname": "host",
7529+
"href": "foo://host/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
7530+
"origin": "null",
7531+
"password": "",
7532+
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
7533+
"port":"",
7534+
"protocol": "foo:",
7535+
"search": "",
7536+
"username": ""
7537+
},
7538+
{
7539+
"input": "wss://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~",
7540+
"base": "about:blank",
7541+
"hash": "",
7542+
"host": "host",
7543+
"hostname": "host",
7544+
"href": "wss://host/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
7545+
"origin": "wss://host",
7546+
"password": "",
7547+
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
7548+
"port":"",
7549+
"protocol": "wss:",
7550+
"search": "",
7551+
"username": ""
7552+
},
7553+
{
7554+
"input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
7555+
"base": "about:blank",
7556+
"hash": "",
7557+
"host": "host",
7558+
"hostname": "host",
7559+
"href": "foo://host/dir/?%20!%22$%&'()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
7560+
"origin": "null",
7561+
"password": "",
7562+
"pathname": "/dir/",
7563+
"port":"",
7564+
"protocol": "foo:",
7565+
"search": "?%20!%22$%&'()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
7566+
"username": ""
7567+
},
7568+
{
7569+
"input": "wss://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
7570+
"base": "about:blank",
7571+
"hash": "",
7572+
"host": "host",
7573+
"hostname": "host",
7574+
"href": "wss://host/dir/?%20!%22$%&%27()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
7575+
"origin": "wss://host",
7576+
"password": "",
7577+
"pathname": "/dir/",
7578+
"port":"",
7579+
"protocol": "wss:",
7580+
"search": "?%20!%22$%&%27()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
7581+
"username": ""
7582+
},
7583+
{
7584+
"input": "foo://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
7585+
"base": "about:blank",
7586+
"hash": "#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
7587+
"host": "host",
7588+
"hostname": "host",
7589+
"href": "foo://host/dir/#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
7590+
"origin": "null",
7591+
"password": "",
7592+
"pathname": "/dir/",
7593+
"port":"",
7594+
"protocol": "foo:",
7595+
"search": "",
7596+
"username": ""
7597+
},
7598+
{
7599+
"input": "wss://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
7600+
"base": "about:blank",
7601+
"hash": "#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
7602+
"host": "host",
7603+
"hostname": "host",
7604+
"href": "wss://host/dir/#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
7605+
"origin": "wss://host",
7606+
"password": "",
7607+
"pathname": "/dir/",
7608+
"port":"",
7609+
"protocol": "wss:",
7610+
"search": "",
7611+
"username": ""
74327612
}
74337613
]

test/fixtures/wpt/versions.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"common": {
3-
"commit": "3586ff740b00aa1fa82ab00cccbc36cca0bb8ccb",
3+
"commit": "bb97a689743eb5e3bc0bc92ac41ab266c54c134e",
44
"path": "common"
55
},
66
"console": {
@@ -32,15 +32,15 @@
3232
"path": "html/webappapis/timers"
3333
},
3434
"interfaces": {
35-
"commit": "8602e9c9a168c25838bc4b808e3d213ce94ccac1",
35+
"commit": "79fa4cf76e0d39e3fc1b7ead85e067b0a064b892",
3636
"path": "interfaces"
3737
},
3838
"resources": {
39-
"commit": "e366371a194459f23f8d6115cfdb57e0bc851468",
39+
"commit": "972ca5b6693bffebebc5805e1b9da68a6876e1f6",
4040
"path": "resources"
4141
},
4242
"url": {
43-
"commit": "59d28c8f2d91d12533cfd0371acbe473b1825967",
43+
"commit": "33f2e3f2e759bd51ebf8e4b9a01b067bc8281c5c",
4444
"path": "url"
4545
}
4646
}

0 commit comments

Comments
 (0)