Skip to content

Commit 4c9973b

Browse files
test: update WPT for urlpattern to a2e15ad405
1 parent ed6ec96 commit 4c9973b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-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/aed1f3d244/urlpattern
32+
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,5 +3108,15 @@
31083108
"hostname": { "input": "www.example.com", "groups": {} },
31093109
"pathname": { "input": "/path/with/x", "groups": { "0": "path/with/x" } }
31103110
}
3111+
},
3112+
{
3113+
"pattern": [{ "hostname": ":domain(.*)" }],
3114+
"inputs": [{ "hostname": "localhost" }],
3115+
"expected_obj": {
3116+
"hostname": ":domain(.*)"
3117+
},
3118+
"expected_match": {
3119+
"hostname": { "input": "localhost", "groups": { "domain" : "localhost"} }
3120+
}
31113121
}
31123122
]

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

0 commit comments

Comments
 (0)