Skip to content

Commit cb92c4b

Browse files
anonrigruyadorno
authored andcommittedAug 29, 2023
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 a2964a4 commit cb92c4b

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
- performance-timeline: https://github.com/web-platform-tests/wpt/tree/17ebc3aea0/performance-timeline
2828
- resources: https://github.com/web-platform-tests/wpt/tree/fbf1e7d247/resources
2929
- streams: https://github.com/web-platform-tests/wpt/tree/9e5ef42bd3/streams
30-
- url: https://github.com/web-platform-tests/wpt/tree/7c5c3cc125/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
@@ -7740,6 +7740,21 @@
77407740
"search": "",
77417741
"hash": ""
77427742
},
7743+
{
7744+
"input": "blob:http://example.org:88/",
7745+
"base": null,
7746+
"href": "blob:http://example.org:88/",
7747+
"origin": "http://example.org:88",
7748+
"protocol": "blob:",
7749+
"username": "",
7750+
"password": "",
7751+
"host": "",
7752+
"hostname": "",
7753+
"port": "",
7754+
"pathname": "http://example.org:88/",
7755+
"search": "",
7756+
"hash": ""
7757+
},
77437758
{
77447759
"input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
77457760
"base": "about:blank",
@@ -7770,6 +7785,129 @@
77707785
"search": "",
77717786
"hash": ""
77727787
},
7788+
"blob: in blob:",
7789+
{
7790+
"input": "blob:blob:",
7791+
"base": null,
7792+
"href": "blob:blob:",
7793+
"origin": "null",
7794+
"protocol": "blob:",
7795+
"username": "",
7796+
"password": "",
7797+
"host": "",
7798+
"hostname": "",
7799+
"port": "",
7800+
"pathname": "blob:",
7801+
"search": "",
7802+
"hash": ""
7803+
},
7804+
{
7805+
"input": "blob:blob:https://example.org/",
7806+
"base": null,
7807+
"href": "blob:blob:https://example.org/",
7808+
"origin": "null",
7809+
"protocol": "blob:",
7810+
"username": "",
7811+
"password": "",
7812+
"host": "",
7813+
"hostname": "",
7814+
"port": "",
7815+
"pathname": "blob:https://example.org/",
7816+
"search": "",
7817+
"hash": ""
7818+
},
7819+
"Non-http(s): in blob:",
7820+
{
7821+
"input": "blob:about:blank",
7822+
"base": null,
7823+
"href": "blob:about:blank",
7824+
"origin": "null",
7825+
"protocol": "blob:",
7826+
"username": "",
7827+
"password": "",
7828+
"host": "",
7829+
"hostname": "",
7830+
"port": "",
7831+
"pathname": "about:blank",
7832+
"search": "",
7833+
"hash": ""
7834+
},
7835+
{
7836+
"input": "blob:file://host/path",
7837+
"base": null,
7838+
"href": "blob:file://host/path",
7839+
"origin": "null",
7840+
"protocol": "blob:",
7841+
"username": "",
7842+
"password": "",
7843+
"host": "",
7844+
"hostname": "",
7845+
"port": "",
7846+
"pathname": "file://host/path",
7847+
"search": "",
7848+
"hash": ""
7849+
},
7850+
{
7851+
"input": "blob:ftp://host/path",
7852+
"base": null,
7853+
"href": "blob:ftp://host/path",
7854+
"origin": "null",
7855+
"protocol": "blob:",
7856+
"username": "",
7857+
"password": "",
7858+
"host": "",
7859+
"hostname": "",
7860+
"port": "",
7861+
"pathname": "ftp://host/path",
7862+
"search": "",
7863+
"hash": ""
7864+
},
7865+
{
7866+
"input": "blob:ws://example.org/",
7867+
"base": null,
7868+
"href": "blob:ws://example.org/",
7869+
"origin": "null",
7870+
"protocol": "blob:",
7871+
"username": "",
7872+
"password": "",
7873+
"host": "",
7874+
"hostname": "",
7875+
"port": "",
7876+
"pathname": "ws://example.org/",
7877+
"search": "",
7878+
"hash": ""
7879+
},
7880+
{
7881+
"input": "blob:wss://example.org/",
7882+
"base": null,
7883+
"href": "blob:wss://example.org/",
7884+
"origin": "null",
7885+
"protocol": "blob:",
7886+
"username": "",
7887+
"password": "",
7888+
"host": "",
7889+
"hostname": "",
7890+
"port": "",
7891+
"pathname": "wss://example.org/",
7892+
"search": "",
7893+
"hash": ""
7894+
},
7895+
"Percent-encoded http: in blob:",
7896+
{
7897+
"input": "blob:http%3a//example.org/",
7898+
"base": null,
7899+
"href": "blob:http%3a//example.org/",
7900+
"origin": "null",
7901+
"protocol": "blob:",
7902+
"username": "",
7903+
"password": "",
7904+
"host": "",
7905+
"hostname": "",
7906+
"port": "",
7907+
"pathname": "http%3a//example.org/",
7908+
"search": "",
7909+
"hash": ""
7910+
},
77737911
"Invalid IPv4 radix digits",
77747912
{
77757913
"input": "http://0x7f.0.0.0x7g",
@@ -9344,5 +9482,35 @@
93449482
"input": "stun://[:1]",
93459483
"base": "about:blank",
93469484
"failure": true
9485+
},
9486+
{
9487+
"input": "w://x:0",
9488+
"base": null,
9489+
"href": "w://x:0",
9490+
"origin": "null",
9491+
"protocol": "w:",
9492+
"username": "",
9493+
"password": "",
9494+
"host": "x:0",
9495+
"hostname": "x",
9496+
"port": "0",
9497+
"pathname": "",
9498+
"search": "",
9499+
"hash": ""
9500+
},
9501+
{
9502+
"input": "west://x:0",
9503+
"base": null,
9504+
"href": "west://x:0",
9505+
"origin": "null",
9506+
"protocol": "west:",
9507+
"username": "",
9508+
"password": "",
9509+
"host": "x:0",
9510+
"hostname": "x",
9511+
"port": "0",
9512+
"pathname": "",
9513+
"search": "",
9514+
"hash": ""
93479515
}
93489516
]

‎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": "7c5c3cc125979b4768d414471e6ab655b473aae8",
71+
"commit": "84782d931516aa13cfe32dc7eaa1377b4d947d66",
7272
"path": "url"
7373
},
7474
"user-timing": {

‎test/wpt/status/url.json

+3
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
},
1616
"javascript-urls.window.js": {
1717
"skip": "requires document.body reference"
18+
},
19+
"url-origin.any.js": {
20+
"skip": "implementation not up to date"
1821
}
1922
}

0 commit comments

Comments
 (0)
Please sign in to comment.