mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
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:
parent
43ffcf1d2e
commit
b7ca23f50e
2
test/fixtures/wpt/README.md
vendored
2
test/fixtures/wpt/README.md
vendored
@ -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
|
||||
|
@ -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" }],
|
||||
|
2
test/fixtures/wpt/versions.json
vendored
2
test/fixtures/wpt/versions.json
vendored
@ -76,7 +76,7 @@
|
||||
"path": "url"
|
||||
},
|
||||
"urlpattern": {
|
||||
"commit": "1b56d89a261b86dedfd2854b53c1732e435f1f57",
|
||||
"commit": "ef6d83d789483763207af8cedcbf1f3c1317b981",
|
||||
"path": "urlpattern"
|
||||
},
|
||||
"user-timing": {
|
||||
|
Loading…
Reference in New Issue
Block a user