Skip to content

Commit 764119b

Browse files
anonrigRafaelGSS
authored andcommitted
test: update url web-platform tests
PR-URL: #48319 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 8cd56c1 commit 764119b

File tree

5 files changed

+173
-10
lines changed

5 files changed

+173
-10
lines changed

test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Last update:
2727
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
2828
- resources: https://github.com/web-platform-tests/wpt/tree/919874f84f/resources
2929
- streams: https://github.com/web-platform-tests/wpt/tree/51750bc8d7/streams
30-
- url: https://github.com/web-platform-tests/wpt/tree/c4726447f3/url
30+
- url: https://github.com/web-platform-tests/wpt/tree/84782d9315/url
3131
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3232
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
3333
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi

test/fixtures/wpt/url/resources/percent-encoding.json

-8
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,5 @@
4444
"output": {
4545
"utf-8": "%C3%A1|"
4646
}
47-
},
48-
"Surrogate!",
49-
{
50-
"input": "\ud800",
51-
"output": {
52-
"utf-8": "%EF%BF%BD",
53-
"windows-1252": "%26%2365533%3B"
54-
}
5547
}
5648
]

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

+168
Original file line numberDiff line numberDiff line change
@@ -7755,6 +7755,21 @@
77557755
"search": "",
77567756
"hash": ""
77577757
},
7758+
{
7759+
"input": "blob:http://example.org:88/",
7760+
"base": null,
7761+
"href": "blob:http://example.org:88/",
7762+
"origin": "http://example.org:88",
7763+
"protocol": "blob:",
7764+
"username": "",
7765+
"password": "",
7766+
"host": "",
7767+
"hostname": "",
7768+
"port": "",
7769+
"pathname": "http://example.org:88/",
7770+
"search": "",
7771+
"hash": ""
7772+
},
77587773
{
77597774
"input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
77607775
"base": null,
@@ -7785,6 +7800,129 @@
77857800
"search": "",
77867801
"hash": ""
77877802
},
7803+
"blob: in blob:",
7804+
{
7805+
"input": "blob:blob:",
7806+
"base": null,
7807+
"href": "blob:blob:",
7808+
"origin": "null",
7809+
"protocol": "blob:",
7810+
"username": "",
7811+
"password": "",
7812+
"host": "",
7813+
"hostname": "",
7814+
"port": "",
7815+
"pathname": "blob:",
7816+
"search": "",
7817+
"hash": ""
7818+
},
7819+
{
7820+
"input": "blob:blob:https://example.org/",
7821+
"base": null,
7822+
"href": "blob:blob:https://example.org/",
7823+
"origin": "null",
7824+
"protocol": "blob:",
7825+
"username": "",
7826+
"password": "",
7827+
"host": "",
7828+
"hostname": "",
7829+
"port": "",
7830+
"pathname": "blob:https://example.org/",
7831+
"search": "",
7832+
"hash": ""
7833+
},
7834+
"Non-http(s): in blob:",
7835+
{
7836+
"input": "blob:about:blank",
7837+
"base": null,
7838+
"href": "blob:about:blank",
7839+
"origin": "null",
7840+
"protocol": "blob:",
7841+
"username": "",
7842+
"password": "",
7843+
"host": "",
7844+
"hostname": "",
7845+
"port": "",
7846+
"pathname": "about:blank",
7847+
"search": "",
7848+
"hash": ""
7849+
},
7850+
{
7851+
"input": "blob:file://host/path",
7852+
"base": null,
7853+
"href": "blob:file://host/path",
7854+
"origin": "null",
7855+
"protocol": "blob:",
7856+
"username": "",
7857+
"password": "",
7858+
"host": "",
7859+
"hostname": "",
7860+
"port": "",
7861+
"pathname": "file://host/path",
7862+
"search": "",
7863+
"hash": ""
7864+
},
7865+
{
7866+
"input": "blob:ftp://host/path",
7867+
"base": null,
7868+
"href": "blob:ftp://host/path",
7869+
"origin": "null",
7870+
"protocol": "blob:",
7871+
"username": "",
7872+
"password": "",
7873+
"host": "",
7874+
"hostname": "",
7875+
"port": "",
7876+
"pathname": "ftp://host/path",
7877+
"search": "",
7878+
"hash": ""
7879+
},
7880+
{
7881+
"input": "blob:ws://example.org/",
7882+
"base": null,
7883+
"href": "blob:ws://example.org/",
7884+
"origin": "null",
7885+
"protocol": "blob:",
7886+
"username": "",
7887+
"password": "",
7888+
"host": "",
7889+
"hostname": "",
7890+
"port": "",
7891+
"pathname": "ws://example.org/",
7892+
"search": "",
7893+
"hash": ""
7894+
},
7895+
{
7896+
"input": "blob:wss://example.org/",
7897+
"base": null,
7898+
"href": "blob:wss://example.org/",
7899+
"origin": "null",
7900+
"protocol": "blob:",
7901+
"username": "",
7902+
"password": "",
7903+
"host": "",
7904+
"hostname": "",
7905+
"port": "",
7906+
"pathname": "wss://example.org/",
7907+
"search": "",
7908+
"hash": ""
7909+
},
7910+
"Percent-encoded http: in blob:",
7911+
{
7912+
"input": "blob:http%3a//example.org/",
7913+
"base": null,
7914+
"href": "blob:http%3a//example.org/",
7915+
"origin": "null",
7916+
"protocol": "blob:",
7917+
"username": "",
7918+
"password": "",
7919+
"host": "",
7920+
"hostname": "",
7921+
"port": "",
7922+
"pathname": "http%3a//example.org/",
7923+
"search": "",
7924+
"hash": ""
7925+
},
77887926
"Invalid IPv4 radix digits",
77897927
{
77907928
"input": "http://0x7f.0.0.0x7g",
@@ -9362,5 +9500,35 @@
93629500
"input": "stun://[:1]",
93639501
"base": null,
93649502
"failure": true
9503+
},
9504+
{
9505+
"input": "w://x:0",
9506+
"base": null,
9507+
"href": "w://x:0",
9508+
"origin": "null",
9509+
"protocol": "w:",
9510+
"username": "",
9511+
"password": "",
9512+
"host": "x:0",
9513+
"hostname": "x",
9514+
"port": "0",
9515+
"pathname": "",
9516+
"search": "",
9517+
"hash": ""
9518+
},
9519+
{
9520+
"input": "west://x:0",
9521+
"base": null,
9522+
"href": "west://x:0",
9523+
"origin": "null",
9524+
"protocol": "west:",
9525+
"username": "",
9526+
"password": "",
9527+
"host": "x:0",
9528+
"hostname": "x",
9529+
"port": "0",
9530+
"pathname": "",
9531+
"search": "",
9532+
"hash": ""
93659533
}
93669534
]

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"path": "streams"
6969
},
7070
"url": {
71-
"commit": "c4726447f3bad1c71244fb99c98738ff0354a034",
71+
"commit": "84782d931516aa13cfe32dc7eaa1377b4d947d66",
7272
"path": "url"
7373
},
7474
"user-timing": {

test/wpt/status/url.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
},
1818
"javascript-urls.window.js": {
1919
"skip": "requires document.body reference"
20+
},
21+
"url-origin.any.js": {
22+
"skip": "implementation not up to date"
2023
}
2124
}

0 commit comments

Comments
 (0)