Skip to content

Commit fd132ae

Browse files
wanderviewchromium-wpt-export-bot
authored andcommitted
URLPattern: Add WPT cases for isolated '.' and '..' in pathname.
This CL adds WPT test cases for the issue described in: whatwg/urlpattern#156 Note, chromium does not suffer from the bug in the spec and already passes the tests. Change-Id: I121fe82bf1cdcb5b0ef6634d51d4f58beb57a2bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3399610 Reviewed-by: Domenic Denicola <[email protected]> Commit-Queue: Ben Kelly <[email protected]> Cr-Commit-Position: refs/heads/main@{#960622}
1 parent 53403b0 commit fd132ae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

urlpattern/resources/urlpatterntestdata.json

+14
Original file line numberDiff line numberDiff line change
@@ -2665,5 +2665,19 @@
26652665
"pattern": [{ "pathname": "*//*" }],
26662666
"inputs": [{ "pathname": "foo/bar" }],
26672667
"expected_match": null
2668+
},
2669+
{
2670+
"pattern": [{ "pathname": "/:foo." }],
2671+
"inputs": [{ "pathname": "/bar." }],
2672+
"expected_match": {
2673+
"pathname": { "input": "/bar.", "groups": { "foo": "bar" } }
2674+
}
2675+
},
2676+
{
2677+
"pattern": [{ "pathname": "/:foo.." }],
2678+
"inputs": [{ "pathname": "/bar.." }],
2679+
"expected_match": {
2680+
"pathname": { "input": "/bar..", "groups": { "foo": "bar" } }
2681+
}
26682682
}
26692683
]

0 commit comments

Comments
 (0)