Skip to content

Commit

Permalink
remove invalid pathname WPT
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jan 1, 2025
1 parent 21f1779 commit e920e49
Showing 1 changed file with 0 additions and 107 deletions.
107 changes: 0 additions & 107 deletions tests/wpt/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/" }],
Expand All @@ -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é" }],
Expand Down Expand Up @@ -1387,10 +1322,6 @@
"pathname": { "input": "8675309", "groups": { "number": "8675309" }}
}
},
{
"pattern": [{ "pathname": "/(\\m)" }],
"expected_obj": "error"
},
{
"pattern": [{ "pathname": "/foo!" }],
"inputs": [{ "pathname": "/foo!" }],
Expand Down Expand Up @@ -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" ],
Expand Down Expand Up @@ -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]/" ],
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit e920e49

Please sign in to comment.