Skip to content

Commit

Permalink
Bug 1750861 [wpt PR 32442] - URLPattern: More WPT tests with '.' and …
Browse files Browse the repository at this point in the history
…'..'., a=testonly

Automatic update from web-platform-tests
URLPattern: More WPT tests with '.' and '..'.

This CL adds some more test cases for issues discussed in:

whatwg/urlpattern#156

Change-Id: I885a61aa6be3d416babfa7c23b19465d0c63d07a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3399895
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Commit-Queue: Ben Kelly <wanderview@chromium.org>
Cr-Commit-Position: refs/heads/main@{#960951}

--

wpt-commits: b717651264109d1ac96e922431b7b846ba8d599f
wpt-pr: 32442
  • Loading branch information
wanderview authored and moz-wptsync-bot committed Feb 5, 2022
1 parent 0724b67 commit 0dc2d1c
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2679,5 +2679,33 @@
"expected_match": {
"pathname": { "input": "/bar..", "groups": { "foo": "bar" } }
}
},
{
"pattern": [{ "pathname": "./foo" }],
"inputs": [{ "pathname": "./foo" }],
"expected_match": {
"pathname": { "input": "./foo", "groups": {}}
}
},
{
"pattern": [{ "pathname": "../foo" }],
"inputs": [{ "pathname": "../foo" }],
"expected_match": {
"pathname": { "input": "../foo", "groups": {}}
}
},
{
"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 0dc2d1c

Please sign in to comment.