Skip to content

Commit 1ceb921

Browse files
wanderviewchromium-wpt-export-bot
authored andcommitted
URLPattern: More WPT tests with '.' and '..'.
This CL adds some more test cases for issues discussed in: whatwg/urlpattern#156 Change-Id: I885a61aa6be3d416babfa7c23b19465d0c63d07a
1 parent fd132ae commit 1ceb921

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

urlpattern/resources/urlpatterntestdata.json

+28
Original file line numberDiff line numberDiff line change
@@ -2679,5 +2679,33 @@
26792679
"expected_match": {
26802680
"pathname": { "input": "/bar..", "groups": { "foo": "bar" } }
26812681
}
2682+
},
2683+
{
2684+
"pattern": [{ "pathname": "./foo" }],
2685+
"inputs": [{ "pathname": "./foo" }],
2686+
"expected_match": {
2687+
"pathname": { "input": "./foo", "groups": {}}
2688+
}
2689+
},
2690+
{
2691+
"pattern": [{ "pathname": "../foo" }],
2692+
"inputs": [{ "pathname": "../foo" }],
2693+
"expected_match": {
2694+
"pathname": { "input": "../foo", "groups": {}}
2695+
}
2696+
},
2697+
{
2698+
"pattern": [{ "pathname": ":foo./" }],
2699+
"inputs": [{ "pathname": "bar./" }],
2700+
"expected_match": {
2701+
"pathname": { "input": "bar./", "groups": { "foo": "bar" }}
2702+
}
2703+
},
2704+
{
2705+
"pattern": [{ "pathname": ":foo../" }],
2706+
"inputs": [{ "pathname": "bar../" }],
2707+
"expected_match": {
2708+
"pathname": { "input": "bar../", "groups": { "foo": "bar" }}
2709+
}
26822710
}
26832711
]

0 commit comments

Comments
 (0)