Skip to content

Commit 0314006

Browse files
anonriggithub-actions[bot]
authored andcommitted
test: update web platform tests
1 parent 3b9bacb commit 0314006

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/wpt/urlpatterntestdata.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3126,5 +3126,33 @@
31263126
{
31273127
"pattern": ["(\\H):"],
31283128
"expected_obj": "error"
3129+
},
3130+
{
3131+
"pattern": [
3132+
{"pathname": "/:foo((?<x>a))"}
3133+
],
3134+
"inputs": [
3135+
{"pathname": "/a"}
3136+
],
3137+
"expected_match": {
3138+
"pathname": {
3139+
"input": "/a",
3140+
"groups": {"foo": "a"}
3141+
}
3142+
}
3143+
},
3144+
{
3145+
"pattern": [
3146+
{"pathname": "/foo/(bar(?<x>baz))"}
3147+
],
3148+
"inputs": [
3149+
{"pathname": "/foo/barbaz"}
3150+
],
3151+
"expected_match": {
3152+
"pathname": {
3153+
"input": "/foo/barbaz",
3154+
"groups": {"0": "barbaz"}
3155+
}
3156+
}
31293157
}
31303158
]

0 commit comments

Comments
 (0)