Skip to content

Commit

Permalink
Bug 1750830 [wpt PR 32440] - URLPattern: Add WPT cases for isolated '…
Browse files Browse the repository at this point in the history
….' and '..' in pathname., a=testonly

Automatic update from web-platform-tests
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}

--

wpt-commits: fd132aec57c531fdbb71cc7cd18aed97a8e3492a
wpt-pr: 32440
  • Loading branch information
wanderview authored and moz-wptsync-bot committed Feb 5, 2022
1 parent 78713e7 commit 40d9481
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 40d9481

Please sign in to comment.