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}
NOKEYCHECK=True
GitOrigin-RevId: 568c89e80683904edfdd6f313983768407509b5e
  • Loading branch information
wanderview authored and copybara-github committed Jan 19, 2022
1 parent 20d4b41 commit 7f67ec8
Showing 1 changed file with 14 additions and 0 deletions.
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 7f67ec8

Please sign in to comment.