Skip to content

Commit 9b98ac6

Browse files
nodejs-github-bottargos
authored andcommitted
test: update WPT for urlpattern to ef6d83d789
PR-URL: #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>
1 parent d8e70dc commit 9b98ac6

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Last update:
2929
- resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
3131
- url: https://github.com/web-platform-tests/wpt/tree/a23788b77a/url
32-
- urlpattern: https://github.com/web-platform-tests/wpt/tree/1b56d89a26/urlpattern
32+
- urlpattern: https://github.com/web-platform-tests/wpt/tree/ef6d83d789/urlpattern
3333
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3434
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
3535
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi

test/fixtures/wpt/urlpattern/resources/urlpatterntestdata.json

+57
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,63 @@
11211121
"hostname": { "input": "xn--caf-dma.com", "groups": {}}
11221122
}
11231123
},
1124+
{
1125+
"pattern": ["http://\uD83D\uDEB2.com/"],
1126+
"inputs": ["http://\uD83D\uDEB2.com/"],
1127+
"exactly_empty_components": [ "port" ],
1128+
"expected_obj": {
1129+
"protocol": "http",
1130+
"hostname": "xn--h78h.com",
1131+
"pathname": "/"
1132+
},
1133+
"expected_match": {
1134+
"protocol": { "input": "http", "groups": {}},
1135+
"hostname": { "input": "xn--h78h.com", "groups": {}},
1136+
"pathname": { "input": "/", "groups": {}}
1137+
}
1138+
},
1139+
{
1140+
"pattern": ["http://\uD83D \uDEB2"],
1141+
"expected_obj": "error"
1142+
},
1143+
{
1144+
"pattern": [{"hostname":"\uD83D \uDEB2"}],
1145+
"expected_obj": "error"
1146+
},
1147+
{
1148+
"pattern": [{"pathname":"\uD83D \uDEB2"}],
1149+
"inputs": [],
1150+
"expected_obj": {
1151+
"pathname": "%EF%BF%BD%20%EF%BF%BD"
1152+
},
1153+
"expected_match": null
1154+
},
1155+
{
1156+
"pattern": [{"pathname":":\uD83D \uDEB2"}],
1157+
"expected_obj": "error"
1158+
},
1159+
{
1160+
"pattern": [{"pathname":":a\uDB40\uDD00b"}],
1161+
"inputs": [],
1162+
"expected_obj": {
1163+
"pathname": ":a\uDB40\uDD00b"
1164+
},
1165+
"expected_match": null
1166+
},
1167+
{
1168+
"pattern": [{"pathname":"test/:a\uD801\uDC50b"}],
1169+
"inputs": [{"pathname":"test/foo"}],
1170+
"expected_obj": {
1171+
"pathname": "test/:a\uD801\uDC50b"
1172+
},
1173+
"expected_match": {
1174+
"pathname": { "input": "test/foo", "groups": { "a\uD801\uDC50b": "foo" }}
1175+
}
1176+
},
1177+
{
1178+
"pattern": [{"pathname":":\uD83D\uDEB2"}],
1179+
"expected_obj": "error"
1180+
},
11241181
{
11251182
"pattern": [{ "port": "" }],
11261183
"inputs": [{ "protocol": "http", "port": "80" }],

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"path": "url"
7777
},
7878
"urlpattern": {
79-
"commit": "1b56d89a261b86dedfd2854b53c1732e435f1f57",
79+
"commit": "ef6d83d789483763207af8cedcbf1f3c1317b981",
8080
"path": "urlpattern"
8181
},
8282
"user-timing": {

0 commit comments

Comments
 (0)