From e920e4957ebbbe3df394430ed6820d7f325a8f86 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Wed, 1 Jan 2025 14:04:19 -0500 Subject: [PATCH] remove invalid pathname WPT --- tests/wpt/urlpatterntestdata.json | 107 ------------------------------ 1 file changed, 107 deletions(-) diff --git a/tests/wpt/urlpatterntestdata.json b/tests/wpt/urlpatterntestdata.json index 96a8a5a77..43178287b 100644 --- a/tests/wpt/urlpatterntestdata.json +++ b/tests/wpt/urlpatterntestdata.json @@ -1239,32 +1239,6 @@ "pathname": { "input": "/bar", "groups": {}} } }, - { - "pattern": [{ "pathname": "./foo/bar", "baseURL": "https://example.com" }], - "inputs": [{ "pathname": "foo/bar", "baseURL": "https://example.com" }], - "exactly_empty_components": [ "port" ], - "expected_obj": { - "pathname": "/foo/bar" - }, - "expected_match": { - "protocol": { "input": "https", "groups": {}}, - "hostname": { "input": "example.com", "groups": {}}, - "pathname": { "input": "/foo/bar", "groups": {}} - } - }, - { - "pattern": [{ "pathname": "", "baseURL": "https://example.com" }], - "inputs": [{ "pathname": "/", "baseURL": "https://example.com" }], - "exactly_empty_components": [ "port" ], - "expected_obj": { - "pathname": "/" - }, - "expected_match": { - "protocol": { "input": "https", "groups": {}}, - "hostname": { "input": "example.com", "groups": {}}, - "pathname": { "input": "/", "groups": {}} - } - }, { "pattern": [{ "pathname": "{/bar}", "baseURL": "https://example.com/foo/" }], "inputs": [{ "pathname": "./bar", "baseURL": "https://example.com/foo/" }], @@ -1283,50 +1257,11 @@ }, "expected_match": null }, - { - "pattern": [{ "pathname": "b", "baseURL": "https://example.com/foo/" }], - "inputs": [{ "pathname": "./b", "baseURL": "https://example.com/foo/" }], - "exactly_empty_components": [ "port" ], - "expected_obj": { - "pathname": "/foo/b" - }, - "expected_match": { - "protocol": { "input": "https", "groups": {}}, - "hostname": { "input": "example.com", "groups": {}}, - "pathname": { "input": "/foo/b", "groups": {}} - } - }, { "pattern": [{ "pathname": "foo/bar" }], "inputs": [ "https://example.com/foo/bar" ], "expected_match": null }, - { - "pattern": [{ "pathname": "foo/bar", "baseURL": "https://example.com" }], - "inputs": [ "https://example.com/foo/bar" ], - "exactly_empty_components": [ "port" ], - "expected_obj": { - "pathname": "/foo/bar" - }, - "expected_match": { - "protocol": { "input": "https", "groups": {}}, - "hostname": { "input": "example.com", "groups": {}}, - "pathname": { "input": "/foo/bar", "groups": {}} - } - }, - { - "pattern": [{ "pathname": ":name.html", "baseURL": "https://example.com" }], - "inputs": [ "https://example.com/foo.html"] , - "exactly_empty_components": [ "port" ], - "expected_obj": { - "pathname": "/:name.html" - }, - "expected_match": { - "protocol": { "input": "https", "groups": {}}, - "hostname": { "input": "example.com", "groups": {}}, - "pathname": { "input": "/foo.html", "groups": { "name": "foo" }} - } - }, { "pattern": [{ "search": "q=caf%C3%A9" }], "inputs": [{ "search": "q=café" }], @@ -1387,10 +1322,6 @@ "pathname": { "input": "8675309", "groups": { "number": "8675309" }} } }, - { - "pattern": [{ "pathname": "/(\\m)" }], - "expected_obj": "error" - }, { "pattern": [{ "pathname": "/foo!" }], "inputs": [{ "pathname": "/foo!" }], @@ -1472,15 +1403,6 @@ "pathname": { "input": "var%20x%20=%201;", "groups": {}} } }, - { - "pattern": [{ "pathname": "/foo/bar" }], - "inputs": [ "./foo/bar", "https://example.com" ], - "expected_match": { - "hostname": { "input": "example.com", "groups": { "0": "example.com" } }, - "pathname": { "input": "/foo/bar", "groups": {} }, - "protocol": { "input": "https", "groups": { "0": "https" } } - } - }, { "pattern": [{ "pathname": "/foo/bar" }], "inputs": [ { "pathname": "/foo/bar" }, "https://example.com" ], @@ -2141,23 +2063,6 @@ }, "expected_match": null }, - { - "pattern": [ "data{\\:}channel.html", "https://example.com" ], - "inputs": [ "https://example.com/data:channel.html" ], - "exactly_empty_components": [ "port" ], - "expected_obj": { - "protocol": "https", - "hostname": "example.com", - "pathname": "/data\\:channel.html", - "search": "*", - "hash": "*" - }, - "expected_match": { - "protocol": { "input": "https", "groups": {} }, - "hostname": { "input": "example.com", "groups": {} }, - "pathname": { "input": "/data:channel.html", "groups": {} } - } - }, { "pattern": [ "http://[\\:\\:1]/" ], "inputs": [ "http://[::1]/" ], @@ -2816,18 +2721,6 @@ } }, { - "pattern": [{ "pathname": "/([[a-z]--a])" }], - "inputs": [{ "pathname": "/a" }], - "expected_match": null - }, - { - "pattern": [{ "pathname": "/([[a-z]--a])" }], - "inputs": [{ "pathname": "/z" }], - "expected_match": { - "pathname": { "input": "/z", "groups": { "0": "z" } } - } - }, - { "pattern": [{ "pathname": "/([\\d&&[0-1]])" }], "inputs": [{ "pathname": "/0" }], "expected_match": {