Skip to content

Commit b9fa656

Browse files
test: update WPT for urlpattern to cff1ac1123
PR-URL: #59602 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b6cfba7 commit b9fa656

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Last update:
2929
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
3131
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
32-
- urlpattern: https://github.com/web-platform-tests/wpt/tree/84b75f0880/urlpattern
32+
- urlpattern: https://github.com/web-platform-tests/wpt/tree/cff1ac1123/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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,5 +2991,47 @@
29912991
"pattern": [{ "pathname": "/([\\d&&[0-1]])" }],
29922992
"inputs": [{ "pathname": "/3" }],
29932993
"expected_match": null
2994+
},
2995+
{
2996+
"pattern": [{ "protocol": "http", "hostname": "example.com/ignoredpath" }],
2997+
"inputs": ["http://example.com/"],
2998+
"expected_obj": {
2999+
"protocol": "http",
3000+
"hostname": "example.com",
3001+
"pathname": "*"
3002+
},
3003+
"expected_match": {
3004+
"protocol": { "input": "http", "groups": {} },
3005+
"hostname": { "input": "example.com", "groups": {} },
3006+
"pathname": { "input": "/", "groups": { "0": "/" } }
3007+
}
3008+
},
3009+
{
3010+
"pattern": [{ "protocol": "http", "hostname": "example.com\\?ignoredsearch" }],
3011+
"inputs": ["http://example.com/"],
3012+
"expected_obj": {
3013+
"protocol": "http",
3014+
"hostname": "example.com",
3015+
"search": "*"
3016+
},
3017+
"expected_match": {
3018+
"protocol": { "input": "http", "groups": {} },
3019+
"hostname": { "input": "example.com", "groups": {} },
3020+
"pathname": { "input": "/", "groups": { "0": "/" } }
3021+
}
3022+
},
3023+
{
3024+
"pattern": [{ "protocol": "http", "hostname": "example.com#ignoredhash" }],
3025+
"inputs": ["http://example.com/"],
3026+
"expected_obj": {
3027+
"protocol": "http",
3028+
"hostname": "example.com",
3029+
"hash": "*"
3030+
},
3031+
"expected_match": {
3032+
"protocol": { "input": "http", "groups": {} },
3033+
"hostname": { "input": "example.com", "groups": {} },
3034+
"pathname": { "input": "/", "groups": { "0": "/" } }
3035+
}
29943036
}
29953037
]

test/fixtures/wpt/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"path": "url"
7777
},
7878
"urlpattern": {
79-
"commit": "84b75f08801c8cfe407c25614c49132075b8afab",
79+
"commit": "cff1ac112375b8089fe9f6bf434f602cf7ef98be",
8080
"path": "urlpattern"
8181
},
8282
"user-timing": {

0 commit comments

Comments
 (0)