Skip to content

Commit

Permalink
test: update Web Platform Tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos authored and danielleadams committed Mar 16, 2021
1 parent ebc6f41 commit 257b1ab
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 11 deletions.
8 changes: 4 additions & 4 deletions test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ 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/3586ff740b/common
- common: https://github.com/web-platform-tests/wpt/tree/bb97a68974/common
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
- dom/abort: https://github.com/web-platform-tests/wpt/tree/625e1310ce/dom/abort
- encoding: https://github.com/web-platform-tests/wpt/tree/35f70910d3/encoding
- FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4/FileAPI
- hr-time: https://github.com/web-platform-tests/wpt/tree/9910784394/hr-time
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers
- interfaces: https://github.com/web-platform-tests/wpt/tree/8602e9c9a1/interfaces
- resources: https://github.com/web-platform-tests/wpt/tree/e366371a19/resources
- url: https://github.com/web-platform-tests/wpt/tree/59d28c8f2d/url
- interfaces: https://github.com/web-platform-tests/wpt/tree/79fa4cf76e/interfaces
- resources: https://github.com/web-platform-tests/wpt/tree/972ca5b669/resources
- url: https://github.com/web-platform-tests/wpt/tree/33f2e3f2e7/url

[Web Platform Tests]: https://github.com/web-platform-tests/wpt
[`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt
30 changes: 29 additions & 1 deletion test/fixtures/wpt/common/security-features/tools/spec.src.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,23 @@
"delivery_value": "*",
"redirection": "*",
"subresource": [
"area-tag",
"a-tag",
"area-tag",
"audio-tag",
"beacon",
"fetch",
"iframe-tag",
"img-tag",
"link-css-tag",
"link-prefetch-tag",
"object-tag",
"picture-tag",
"script-tag",
"sharedworker-classic",
"sharedworker-import",
"sharedworker-import-data",
"sharedworker-module",
"video-tag",
"worker-classic",
"worker-import",
"worker-import-data",
Expand All @@ -127,6 +134,27 @@
"cross-ws-downgrade"
],
"expectation": "*"
},
{
// Worklets are HTTPS contexts only
"expansion": "*",
"source_scheme": "http",
"source_context_list": "*",
"delivery_type": "*",
"delivery_value": "*",
"redirection": "*",
"subresource": [
"worklet-animation",
"worklet-animation-import-data",
"worklet-audio",
"worklet-audio-import-data",
"worklet-layout",
"worklet-layout-import-data",
"worklet-paint",
"worklet-paint-import-data"
],
"origin": "*",
"expectation": "*"
}
],
"source_context_schema": {
Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/wpt/interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ interface HTMLSourceElement : HTMLElement {
[CEReactions] attribute USVString srcset;
[CEReactions] attribute DOMString sizes;
[CEReactions] attribute DOMString media;
[CEReactions] attribute unsigned long width;
[CEReactions] attribute unsigned long height;
};

[Exposed=Window,
Expand Down Expand Up @@ -467,7 +469,6 @@ interface HTMLObjectElement : HTMLElement {
[CEReactions] attribute USVString data;
[CEReactions] attribute DOMString type;
[CEReactions] attribute DOMString name;
[CEReactions] attribute DOMString useMap;
readonly attribute HTMLFormElement? form;
[CEReactions] attribute DOMString width;
[CEReactions] attribute DOMString height;
Expand Down Expand Up @@ -2524,6 +2525,7 @@ partial interface HTMLObjectElement {
[CEReactions] attribute unsigned long vspace;
[CEReactions] attribute DOMString codeBase;
[CEReactions] attribute DOMString codeType;
[CEReactions] attribute DOMString useMap;

[CEReactions] attribute [LegacyNullToEmptyString] DOMString border;
};
Expand Down
5 changes: 4 additions & 1 deletion test/fixtures/wpt/resources/testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,10 @@ policies and contribution forms [3].
throw new AssertionError(errors.join("\n\n"));
}
}
expose_assert(assert_any, "assert_any");
// FIXME: assert_any cannot use expose_assert, because assert_wrapper does
// not support nested assert calls (e.g. to assert_func). We need to
// support bypassing assert_wrapper for the inner asserts here.
expose(assert_any, "assert_any");

/**
* Assert that a feature is implemented, based on a 'truthy' condition.
Expand Down
180 changes: 180 additions & 0 deletions test/fixtures/wpt/url/resources/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7429,5 +7429,185 @@
"protocol": "https:",
"search": "",
"username": "user"
},
"Tests for the distinct percent-encode sets",
{
"input": "foo:// !\"$%&'()*+,-.;<=>@[\\]^_`{|}~@host/",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "foo://%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~@host/",
"origin": "null",
"password": "",
"pathname": "/",
"port":"",
"protocol": "foo:",
"search": "",
"username": "%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~"
},
{
"input": "wss:// !\"$%&'()*+,-.;<=>@[]^_`{|}~@host/",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "wss://%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~@host/",
"origin": "wss://host",
"password": "",
"pathname": "/",
"port":"",
"protocol": "wss:",
"search": "",
"username": "%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~"
},
{
"input": "foo://joe: !\"$%&'()*+,-.:;<=>@[\\]^_`{|}~@host/",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "foo://joe:%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~@host/",
"origin": "null",
"password": "%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~",
"pathname": "/",
"port":"",
"protocol": "foo:",
"search": "",
"username": "joe"
},
{
"input": "wss://joe: !\"$%&'()*+,-.:;<=>@[]^_`{|}~@host/",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "wss://joe:%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~@host/",
"origin": "wss://host",
"password": "%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~",
"pathname": "/",
"port":"",
"protocol": "wss:",
"search": "",
"username": "joe"
},
{ "input": "foo://!\"$%&'()*+,-.;=_`{}~/",
"base": "about:blank",
"hash": "",
"host": "!\"$%&'()*+,-.;=_`{}~",
"hostname": "!\"$%&'()*+,-.;=_`{}~",
"href":"foo://!\"$%&'()*+,-.;=_`{}~/",
"origin": "null",
"password": "",
"pathname": "/",
"port":"",
"protocol": "foo:",
"search": "",
"username": ""
},
{
"input": "wss://!\"$&'()*+,-.;=_`{}~/",
"base": "about:blank",
"hash": "",
"host": "!\"$&'()*+,-.;=_`{}~",
"hostname": "!\"$&'()*+,-.;=_`{}~",
"href":"wss://!\"$&'()*+,-.;=_`{}~/",
"origin": "wss://!\"$&'()*+,-.;=_`{}~",
"password": "",
"pathname": "/",
"port":"",
"protocol": "wss:",
"search": "",
"username": ""
},
{
"input": "foo://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "foo://host/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
"origin": "null",
"password": "",
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
"port":"",
"protocol": "foo:",
"search": "",
"username": ""
},
{
"input": "wss://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "wss://host/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
"origin": "wss://host",
"password": "",
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
"port":"",
"protocol": "wss:",
"search": "",
"username": ""
},
{
"input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "foo://host/dir/?%20!%22$%&'()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
"origin": "null",
"password": "",
"pathname": "/dir/",
"port":"",
"protocol": "foo:",
"search": "?%20!%22$%&'()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
"username": ""
},
{
"input": "wss://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
"base": "about:blank",
"hash": "",
"host": "host",
"hostname": "host",
"href": "wss://host/dir/?%20!%22$%&%27()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
"origin": "wss://host",
"password": "",
"pathname": "/dir/",
"port":"",
"protocol": "wss:",
"search": "?%20!%22$%&%27()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
"username": ""
},
{
"input": "foo://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
"base": "about:blank",
"hash": "#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
"host": "host",
"hostname": "host",
"href": "foo://host/dir/#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
"origin": "null",
"password": "",
"pathname": "/dir/",
"port":"",
"protocol": "foo:",
"search": "",
"username": ""
},
{
"input": "wss://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
"base": "about:blank",
"hash": "#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
"host": "host",
"hostname": "host",
"href": "wss://host/dir/#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
"origin": "wss://host",
"password": "",
"pathname": "/dir/",
"port":"",
"protocol": "wss:",
"search": "",
"username": ""
}
]
8 changes: 4 additions & 4 deletions test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"common": {
"commit": "3586ff740b00aa1fa82ab00cccbc36cca0bb8ccb",
"commit": "bb97a689743eb5e3bc0bc92ac41ab266c54c134e",
"path": "common"
},
"console": {
Expand Down Expand Up @@ -32,15 +32,15 @@
"path": "html/webappapis/timers"
},
"interfaces": {
"commit": "8602e9c9a168c25838bc4b808e3d213ce94ccac1",
"commit": "79fa4cf76e0d39e3fc1b7ead85e067b0a064b892",
"path": "interfaces"
},
"resources": {
"commit": "e366371a194459f23f8d6115cfdb57e0bc851468",
"commit": "972ca5b6693bffebebc5805e1b9da68a6876e1f6",
"path": "resources"
},
"url": {
"commit": "59d28c8f2d91d12533cfd0371acbe473b1825967",
"commit": "33f2e3f2e759bd51ebf8e4b9a01b067bc8281c5c",
"path": "url"
}
}

0 comments on commit 257b1ab

Please sign in to comment.