Skip to content

Commit

Permalink
test: update WPT for urlpattern to ef6d83d789
Browse files Browse the repository at this point in the history
PR-URL: #56984
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Jason Zhang <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
nodejs-github-bot authored Feb 12, 2025
1 parent 43ffcf1 commit b7ca23f
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
57 changes: 57 additions & 0 deletions test/fixtures/wpt/urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"path": "url"
},
"urlpattern": {
"commit": "1b56d89a261b86dedfd2854b53c1732e435f1f57",
"commit": "ef6d83d789483763207af8cedcbf1f3c1317b981",
"path": "urlpattern"
},
"user-timing": {
Expand Down

0 comments on commit b7ca23f

Please sign in to comment.