Skip to content

Commit

Permalink
URLPattern: Add WPT cases for isolated '.' and '..' in pathname.
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
wanderview authored and chromium-wpt-export-bot committed Jan 18, 2022
1 parent 2f7da96 commit 02bd7da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2665,5 +2665,19 @@
"pattern": [{ "pathname": "*//*" }],
"inputs": [{ "pathname": "foo/bar" }],
"expected_match": null
},
{
"pattern": [{ "pathname": "/:foo." }],
"inputs": [{ "pathname": "/bar." }],
"expected_match": {
"pathname": { "input": "/bar.", "groups": { "foo": "bar" } }
}
},
{
"pattern": [{ "pathname": "/:foo.." }],
"inputs": [{ "pathname": "/bar.." }],
"expected_match": {
"pathname": { "input": "/bar..", "groups": { "foo": "bar" } }
}
}
]

0 comments on commit 02bd7da

Please sign in to comment.