Skip to content

Commit 82cef06

Browse files
committed
remove invalid pathname WPT
1 parent 21f1779 commit 82cef06

File tree

1 file changed

+0
-95
lines changed

1 file changed

+0
-95
lines changed

tests/wpt/urlpatterntestdata.json

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,32 +1239,6 @@
12391239
"pathname": { "input": "/bar", "groups": {}}
12401240
}
12411241
},
1242-
{
1243-
"pattern": [{ "pathname": "./foo/bar", "baseURL": "https://example.com" }],
1244-
"inputs": [{ "pathname": "foo/bar", "baseURL": "https://example.com" }],
1245-
"exactly_empty_components": [ "port" ],
1246-
"expected_obj": {
1247-
"pathname": "/foo/bar"
1248-
},
1249-
"expected_match": {
1250-
"protocol": { "input": "https", "groups": {}},
1251-
"hostname": { "input": "example.com", "groups": {}},
1252-
"pathname": { "input": "/foo/bar", "groups": {}}
1253-
}
1254-
},
1255-
{
1256-
"pattern": [{ "pathname": "", "baseURL": "https://example.com" }],
1257-
"inputs": [{ "pathname": "/", "baseURL": "https://example.com" }],
1258-
"exactly_empty_components": [ "port" ],
1259-
"expected_obj": {
1260-
"pathname": "/"
1261-
},
1262-
"expected_match": {
1263-
"protocol": { "input": "https", "groups": {}},
1264-
"hostname": { "input": "example.com", "groups": {}},
1265-
"pathname": { "input": "/", "groups": {}}
1266-
}
1267-
},
12681242
{
12691243
"pattern": [{ "pathname": "{/bar}", "baseURL": "https://example.com/foo/" }],
12701244
"inputs": [{ "pathname": "./bar", "baseURL": "https://example.com/foo/" }],
@@ -1283,50 +1257,11 @@
12831257
},
12841258
"expected_match": null
12851259
},
1286-
{
1287-
"pattern": [{ "pathname": "b", "baseURL": "https://example.com/foo/" }],
1288-
"inputs": [{ "pathname": "./b", "baseURL": "https://example.com/foo/" }],
1289-
"exactly_empty_components": [ "port" ],
1290-
"expected_obj": {
1291-
"pathname": "/foo/b"
1292-
},
1293-
"expected_match": {
1294-
"protocol": { "input": "https", "groups": {}},
1295-
"hostname": { "input": "example.com", "groups": {}},
1296-
"pathname": { "input": "/foo/b", "groups": {}}
1297-
}
1298-
},
12991260
{
13001261
"pattern": [{ "pathname": "foo/bar" }],
13011262
"inputs": [ "https://example.com/foo/bar" ],
13021263
"expected_match": null
13031264
},
1304-
{
1305-
"pattern": [{ "pathname": "foo/bar", "baseURL": "https://example.com" }],
1306-
"inputs": [ "https://example.com/foo/bar" ],
1307-
"exactly_empty_components": [ "port" ],
1308-
"expected_obj": {
1309-
"pathname": "/foo/bar"
1310-
},
1311-
"expected_match": {
1312-
"protocol": { "input": "https", "groups": {}},
1313-
"hostname": { "input": "example.com", "groups": {}},
1314-
"pathname": { "input": "/foo/bar", "groups": {}}
1315-
}
1316-
},
1317-
{
1318-
"pattern": [{ "pathname": ":name.html", "baseURL": "https://example.com" }],
1319-
"inputs": [ "https://example.com/foo.html"] ,
1320-
"exactly_empty_components": [ "port" ],
1321-
"expected_obj": {
1322-
"pathname": "/:name.html"
1323-
},
1324-
"expected_match": {
1325-
"protocol": { "input": "https", "groups": {}},
1326-
"hostname": { "input": "example.com", "groups": {}},
1327-
"pathname": { "input": "/foo.html", "groups": { "name": "foo" }}
1328-
}
1329-
},
13301265
{
13311266
"pattern": [{ "search": "q=caf%C3%A9" }],
13321267
"inputs": [{ "search": "q=café" }],
@@ -1387,10 +1322,6 @@
13871322
"pathname": { "input": "8675309", "groups": { "number": "8675309" }}
13881323
}
13891324
},
1390-
{
1391-
"pattern": [{ "pathname": "/(\\m)" }],
1392-
"expected_obj": "error"
1393-
},
13941325
{
13951326
"pattern": [{ "pathname": "/foo!" }],
13961327
"inputs": [{ "pathname": "/foo!" }],
@@ -1472,15 +1403,6 @@
14721403
"pathname": { "input": "var%20x%20=%201;", "groups": {}}
14731404
}
14741405
},
1475-
{
1476-
"pattern": [{ "pathname": "/foo/bar" }],
1477-
"inputs": [ "./foo/bar", "https://example.com" ],
1478-
"expected_match": {
1479-
"hostname": { "input": "example.com", "groups": { "0": "example.com" } },
1480-
"pathname": { "input": "/foo/bar", "groups": {} },
1481-
"protocol": { "input": "https", "groups": { "0": "https" } }
1482-
}
1483-
},
14841406
{
14851407
"pattern": [{ "pathname": "/foo/bar" }],
14861408
"inputs": [ { "pathname": "/foo/bar" }, "https://example.com" ],
@@ -2141,23 +2063,6 @@
21412063
},
21422064
"expected_match": null
21432065
},
2144-
{
2145-
"pattern": [ "data{\\:}channel.html", "https://example.com" ],
2146-
"inputs": [ "https://example.com/data:channel.html" ],
2147-
"exactly_empty_components": [ "port" ],
2148-
"expected_obj": {
2149-
"protocol": "https",
2150-
"hostname": "example.com",
2151-
"pathname": "/data\\:channel.html",
2152-
"search": "*",
2153-
"hash": "*"
2154-
},
2155-
"expected_match": {
2156-
"protocol": { "input": "https", "groups": {} },
2157-
"hostname": { "input": "example.com", "groups": {} },
2158-
"pathname": { "input": "/data:channel.html", "groups": {} }
2159-
}
2160-
},
21612066
{
21622067
"pattern": [ "http://[\\:\\:1]/" ],
21632068
"inputs": [ "http://[::1]/" ],

0 commit comments

Comments
 (0)