From 40d94814f7572e4d8bf8bfe154592eb497ff2d2a Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Thu, 27 Jan 2022 11:49:38 +0000 Subject: [PATCH] Bug 1750830 [wpt PR 32440] - URLPattern: Add WPT cases for isolated '.' 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: https://github.com/WICG/urlpattern/issues/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 Commit-Queue: Ben Kelly Cr-Commit-Position: refs/heads/main@{#960622} -- wpt-commits: fd132aec57c531fdbb71cc7cd18aed97a8e3492a wpt-pr: 32440 --- .../urlpattern/resources/urlpatterntestdata.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/testing/web-platform/tests/urlpattern/resources/urlpatterntestdata.json b/testing/web-platform/tests/urlpattern/resources/urlpatterntestdata.json index 671751fd3105b..8cb3fffa2bfe2 100644 --- a/testing/web-platform/tests/urlpattern/resources/urlpatterntestdata.json +++ b/testing/web-platform/tests/urlpattern/resources/urlpatterntestdata.json @@ -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" } } + } } ]