Skip to content

Commit

Permalink
URLPattern: More WPT tests with '.' and '..'.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Commit-Queue: Ben Kelly <[email protected]>
Cr-Commit-Position: refs/heads/main@{#960951}
NOKEYCHECK=True
GitOrigin-RevId: 9b537a98e0581fde0e94987363584c06afdb3184
  • Loading branch information
wanderview authored and copybara-github committed Jan 19, 2022
1 parent adf43f2 commit a545549
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 a545549

Please sign in to comment.