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 e14591c
Showing 1 changed file with 0 additions and 78 deletions.
78 changes: 0 additions & 78 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

0 comments on commit e14591c

Please sign in to comment.