test: update WPT for urlpattern to ef6d83d789

PR-URL: https://github.com/nodejs/node/pull/56984
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Node.js GitHub Bot 2025-02-11 19:32:07 -05:00 committed by GitHub
parent 43ffcf1d2e
commit b7ca23f50e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 59 additions and 2 deletions

View File

@ -29,7 +29,7 @@ Last update:
- resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
- url: https://github.com/web-platform-tests/wpt/tree/a23788b77a/url
- urlpattern: https://github.com/web-platform-tests/wpt/tree/1b56d89a26/urlpattern
- urlpattern: https://github.com/web-platform-tests/wpt/tree/ef6d83d789/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
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi

View File

@ -1121,6 +1121,63 @@
"hostname": { "input": "xn--caf-dma.com", "groups": {}}
}
},
{
"pattern": ["http://\uD83D\uDEB2.com/"],
"inputs": ["http://\uD83D\uDEB2.com/"],
"exactly_empty_components": [ "port" ],
"expected_obj": {
"protocol": "http",
"hostname": "xn--h78h.com",
"pathname": "/"
},
"expected_match": {
"protocol": { "input": "http", "groups": {}},
"hostname": { "input": "xn--h78h.com", "groups": {}},
"pathname": { "input": "/", "groups": {}}
}
},
{
"pattern": ["http://\uD83D \uDEB2"],
"expected_obj": "error"
},
{
"pattern": [{"hostname":"\uD83D \uDEB2"}],
"expected_obj": "error"
},
{
"pattern": [{"pathname":"\uD83D \uDEB2"}],
"inputs": [],
"expected_obj": {
"pathname": "%EF%BF%BD%20%EF%BF%BD"
},
"expected_match": null
},
{
"pattern": [{"pathname":":\uD83D \uDEB2"}],
"expected_obj": "error"
},
{
"pattern": [{"pathname":":a\uDB40\uDD00b"}],
"inputs": [],
"expected_obj": {
"pathname": ":a\uDB40\uDD00b"
},
"expected_match": null
},
{
"pattern": [{"pathname":"test/:a\uD801\uDC50b"}],
"inputs": [{"pathname":"test/foo"}],
"expected_obj": {
"pathname": "test/:a\uD801\uDC50b"
},
"expected_match": {
"pathname": { "input": "test/foo", "groups": { "a\uD801\uDC50b": "foo" }}
}
},
{
"pattern": [{"pathname":":\uD83D\uDEB2"}],
"expected_obj": "error"
},
{
"pattern": [{ "port": "" }],
"inputs": [{ "protocol": "http", "port": "80" }],

View File

@ -76,7 +76,7 @@
"path": "url"
},
"urlpattern": {
"commit": "1b56d89a261b86dedfd2854b53c1732e435f1f57",
"commit": "ef6d83d789483763207af8cedcbf1f3c1317b981",
"path": "urlpattern"
},
"user-timing": {