Skip to content

Commit

Permalink
test: update url web-platform tests
Browse files Browse the repository at this point in the history
PR-URL: #48319
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
  • Loading branch information
anonrig authored and nodejs-github-bot committed Jun 7, 2023
1 parent 11bd9f9 commit e6e0110
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Last update:
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
- resources: https://github.com/web-platform-tests/wpt/tree/919874f84f/resources
- streams: https://github.com/web-platform-tests/wpt/tree/51750bc8d7/streams
- url: https://github.com/web-platform-tests/wpt/tree/c4726447f3/url
- url: https://github.com/web-platform-tests/wpt/tree/84782d9315/url
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
Expand Down
8 changes: 0 additions & 8 deletions test/fixtures/wpt/url/resources/percent-encoding.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,5 @@
"output": {
"utf-8": "%C3%A1|"
}
},
"Surrogate!",
{
"input": "\ud800",
"output": {
"utf-8": "%EF%BF%BD",
"windows-1252": "%26%2365533%3B"
}
}
]
168 changes: 168 additions & 0 deletions test/fixtures/wpt/url/resources/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7755,6 +7755,21 @@
"search": "",
"hash": ""
},
{
"input": "blob:http://example.org:88/",
"base": null,
"href": "blob:http://example.org:88/",
"origin": "http://example.org:88",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "http://example.org:88/",
"search": "",
"hash": ""
},
{
"input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
"base": null,
Expand Down Expand Up @@ -7785,6 +7800,129 @@
"search": "",
"hash": ""
},
"blob: in blob:",
{
"input": "blob:blob:",
"base": null,
"href": "blob:blob:",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "blob:",
"search": "",
"hash": ""
},
{
"input": "blob:blob:https://example.org/",
"base": null,
"href": "blob:blob:https://example.org/",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "blob:https://example.org/",
"search": "",
"hash": ""
},
"Non-http(s): in blob:",
{
"input": "blob:about:blank",
"base": null,
"href": "blob:about:blank",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "about:blank",
"search": "",
"hash": ""
},
{
"input": "blob:file://host/path",
"base": null,
"href": "blob:file://host/path",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "file://host/path",
"search": "",
"hash": ""
},
{
"input": "blob:ftp://host/path",
"base": null,
"href": "blob:ftp://host/path",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "ftp://host/path",
"search": "",
"hash": ""
},
{
"input": "blob:ws://example.org/",
"base": null,
"href": "blob:ws://example.org/",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "ws://example.org/",
"search": "",
"hash": ""
},
{
"input": "blob:wss://example.org/",
"base": null,
"href": "blob:wss://example.org/",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "wss://example.org/",
"search": "",
"hash": ""
},
"Percent-encoded http: in blob:",
{
"input": "blob:http%3a//example.org/",
"base": null,
"href": "blob:http%3a//example.org/",
"origin": "null",
"protocol": "blob:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "http%3a//example.org/",
"search": "",
"hash": ""
},
"Invalid IPv4 radix digits",
{
"input": "http://0x7f.0.0.0x7g",
Expand Down Expand Up @@ -9362,5 +9500,35 @@
"input": "stun://[:1]",
"base": null,
"failure": true
},
{
"input": "w://x:0",
"base": null,
"href": "w://x:0",
"origin": "null",
"protocol": "w:",
"username": "",
"password": "",
"host": "x:0",
"hostname": "x",
"port": "0",
"pathname": "",
"search": "",
"hash": ""
},
{
"input": "west://x:0",
"base": null,
"href": "west://x:0",
"origin": "null",
"protocol": "west:",
"username": "",
"password": "",
"host": "x:0",
"hostname": "x",
"port": "0",
"pathname": "",
"search": "",
"hash": ""
}
]
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"path": "streams"
},
"url": {
"commit": "c4726447f3bad1c71244fb99c98738ff0354a034",
"commit": "84782d931516aa13cfe32dc7eaa1377b4d947d66",
"path": "url"
},
"user-timing": {
Expand Down
3 changes: 3 additions & 0 deletions test/wpt/status/url.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
},
"javascript-urls.window.js": {
"skip": "requires document.body reference"
},
"url-origin.any.js": {
"skip": "implementation not up to date"
}
}

0 comments on commit e6e0110

Please sign in to comment.