Skip to content

Commit c496108

Browse files
test: update WPT for urlpattern to a8c62524f6
1 parent 4822b99 commit c496108

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
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/1e140d63ec/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
3131
- url: https://github.com/web-platform-tests/wpt/tree/d86fcc9e87/url
32-
- urlpattern: https://github.com/web-platform-tests/wpt/tree/6ceca69d26/urlpattern
32+
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a8c62524f6/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: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,11 @@
12021202
{
12031203
"pattern": [{ "protocol": "http", "port": "80 " }],
12041204
"inputs": [{ "protocol": "http", "port": "80" }],
1205-
"exactly_empty_components": ["port"],
1206-
"expected_match": {
1207-
"protocol": { "input": "http", "groups": {} }
1208-
}
1205+
"expected_obj": {
1206+
"protocol": "http",
1207+
"port": "80"
1208+
},
1209+
"expected_match": null
12091210
},
12101211
{
12111212
"pattern": [{ "protocol": "http", "port": "100000" }],
@@ -1874,7 +1875,17 @@
18741875
{
18751876
"pattern": [ "https://{sub.}?example{.com/}foo" ],
18761877
"inputs": [ "https://example.com/foo" ],
1877-
"expected_obj": "error"
1878+
"exactly_empty_components": [ "port" ],
1879+
"expected_obj": {
1880+
"protocol": "https",
1881+
"hostname": "{sub.}?example.com",
1882+
"pathname": "*"
1883+
},
1884+
"expected_match": {
1885+
"protocol": { "input": "https", "groups": {} },
1886+
"hostname": { "input": "example.com", "groups": {} },
1887+
"pathname": { "input": "/foo", "groups": { "0": "/foo" } }
1888+
}
18781889
},
18791890
{
18801891
"pattern": [ "{https://}example.com/foo" ],

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": "6ceca69d26b8ecde9952d6633c17694e03a086f7",
79+
"commit": "a8c62524f649ca5fa69e0f7411f16955edadb851",
8080
"path": "urlpattern"
8181
},
8282
"user-timing": {

0 commit comments

Comments
 (0)