test: update WPT for url to c928b19ab0

PR-URL: https://github.com/nodejs/node/pull/62148
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Mattias Buelens <mattias@buelens.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Node.js GitHub Bot authored and GitHub committed 2026-03-10 00:48:21 +00:00
1 parent 9220d4e752
commit a48e37b67d
4 files changed
+98 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,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/1d2c5fb36a/resources
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
- url: https://github.com/web-platform-tests/wpt/tree/efb889eb4c/url
- url: https://github.com/web-platform-tests/wpt/tree/c928b19ab0/url
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
- 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
+36
View File
@@ -2548,6 +2548,42 @@
"href": "http://example.net/#%00",
"hash": "#%00"
}
},
{
"comment": "Fragment with <> on data: URI",
"href": "data:text/plain,test",
"new_value": "#<foo> <bar>",
"expected": {
"href": "data:text/plain,test#%3Cfoo%3E%20%3Cbar%3E",
"hash": "#%3Cfoo%3E%20%3Cbar%3E"
}
},
{
"comment": "Fragment with <> on about:blank",
"href": "about:blank",
"new_value": "#<foo> <bar>",
"expected": {
"href": "about:blank#%3Cfoo%3E%20%3Cbar%3E",
"hash": "#%3Cfoo%3E%20%3Cbar%3E"
}
},
{
"comment": "Fragment percent-encode set on data: URI; tabs and newlines are removed",
"href": "data:text/plain,test",
"new_value": "#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
"expected": {
"href": "data:text/plain,test#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9",
"hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9"
}
},
{
"comment": "Fragment percent-encode set on about:blank; tabs and newlines are removed",
"href": "about:blank",
"new_value": "#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
"expected": {
"href": "about:blank#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9",
"hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9"
}
}
],
"href": [
+60
View File
@@ -10296,5 +10296,65 @@
"pathname": "/a\\b",
"search": "",
"hash": ""
},
{
"comment": "Fragment with <> on data: URI",
"input": "data:text/plain,test#<foo> <bar>",
"base": null,
"href": "data:text/plain,test#%3Cfoo%3E%20%3Cbar%3E",
"protocol": "data:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "text/plain,test",
"search": "",
"hash": "#%3Cfoo%3E%20%3Cbar%3E"
},
{
"comment": "Fragment with <> on about:blank",
"input": "about:blank#<foo> <bar>",
"base": null,
"href": "about:blank#%3Cfoo%3E%20%3Cbar%3E",
"protocol": "about:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "blank",
"search": "",
"hash": "#%3Cfoo%3E%20%3Cbar%3E"
},
{
"comment": "Fragment percent-encode set on data: URI; tabs and newlines are removed",
"input":"data:text/plain,test#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
"base": null,
"href": "data:text/plain,test#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9",
"protocol": "data:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "text/plain,test",
"search": "",
"hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9"
},
{
"comment": "Fragment percent-encode set on about:blank; tabs and newlines are removed",
"input": "about:blank#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
"base": null,
"href": "about:blank#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9",
"protocol": "about:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "blank",
"search": "",
"hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9"
}
]
+1 -1
View File
@@ -72,7 +72,7 @@
"path": "streams"
},
"url": {
"commit": "efb889eb4c9ca0b4e3ebd8ab308646b7483a8f54",
"commit": "c928b19ab04a4525807238e9299c23f3a1cca582",
"path": "url"
},
"urlpattern": {