Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: update WPT for urlpattern to 3b6b19853a
  • Loading branch information
nodejs-github-bot committed Mar 8, 2025
commit f274a23a8cfb5ae628a7740210667fdb2dbe668b
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/ef6d83d789/urlpattern
- urlpattern: https://github.com/web-platform-tests/wpt/tree/3b6b19853a/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
37 changes: 31 additions & 6 deletions test/fixtures/wpt/urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,14 @@
{
"pattern": [{ "protocol": "http", "port": "80 " }],
"inputs": [{ "protocol": "http", "port": "80" }],
"exactly_empty_components": ["port"],
"expected_match": {
"protocol": { "input": "http", "groups": {} }
}
},
{
"pattern": [{ "protocol": "http", "port": "100000" }],
"inputs": [{ "protocol": "http", "port": "100000" }],
"expected_obj": "error"
},
{
Expand Down Expand Up @@ -2424,15 +2432,22 @@
},
{
"pattern": [{ "hostname": "bad#hostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "bad" }],
"exactly_empty_components": ["port"],
"expected_match": {
"hostname": { "input": "bad", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad%hostname" }],
"expected_obj": "error"
},
{
"pattern": [{ "hostname": "bad/hostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "bad" }],
"expected_match": {
"hostname": { "input": "bad", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad\\:hostname" }],
Expand Down Expand Up @@ -2464,7 +2479,8 @@
},
{
"pattern": [{ "hostname": "bad\\\\hostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "badhostname" }],
"expected_match": null
},
{
"pattern": [{ "hostname": "bad^hostname" }],
Expand All @@ -2476,15 +2492,24 @@
},
{
"pattern": [{ "hostname": "bad\nhostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "badhostname" }],
"expected_match": {
"hostname": { "input": "badhostname", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad\rhostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "badhostname" }],
"expected_match": {
"hostname": { "input": "badhostname", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad\thostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "badhostname" }],
"expected_match": {
"hostname": { "input": "badhostname", "groups": {} }
}
},
{
"pattern": [{}],
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": "ef6d83d789483763207af8cedcbf1f3c1317b981",
"commit": "3b6b19853a928ec9bfa28e9046c3cf601f160e42",
"path": "urlpattern"
},
"user-timing": {
Expand Down