Skip to content

Commit b156640

Browse files
authored
Update WPT, 2023-11-27 (#54)
1 parent 9415f8a commit b156640

File tree

1 file changed

+155
-0
lines changed

1 file changed

+155
-0
lines changed

tests/files/urltestdata.json

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9529,5 +9529,160 @@
95299529
"pathname": "",
95309530
"search": "",
95319531
"hash": ""
9532+
},
9533+
"Scheme relative path starting with multiple slashes",
9534+
{
9535+
"input": "///test",
9536+
"base": "http://example.org/",
9537+
"href": "http://test/",
9538+
"protocol": "http:",
9539+
"username": "",
9540+
"password": "",
9541+
"host": "test",
9542+
"hostname": "test",
9543+
"port": "",
9544+
"pathname": "/",
9545+
"search": "",
9546+
"hash": ""
9547+
},
9548+
{
9549+
"input": "///\\//\\//test",
9550+
"base": "http://example.org/",
9551+
"href": "http://test/",
9552+
"protocol": "http:",
9553+
"username": "",
9554+
"password": "",
9555+
"host": "test",
9556+
"hostname": "test",
9557+
"port": "",
9558+
"pathname": "/",
9559+
"search": "",
9560+
"hash": ""
9561+
},
9562+
{
9563+
"input": "///example.org/path",
9564+
"base": "http://example.org/",
9565+
"href": "http://example.org/path",
9566+
"protocol": "http:",
9567+
"username": "",
9568+
"password": "",
9569+
"host": "example.org",
9570+
"hostname": "example.org",
9571+
"port": "",
9572+
"pathname": "/path",
9573+
"search": "",
9574+
"hash": ""
9575+
},
9576+
{
9577+
"input": "///example.org/../path",
9578+
"base": "http://example.org/",
9579+
"href": "http://example.org/path",
9580+
"protocol": "http:",
9581+
"username": "",
9582+
"password": "",
9583+
"host": "example.org",
9584+
"hostname": "example.org",
9585+
"port": "",
9586+
"pathname": "/path",
9587+
"search": "",
9588+
"hash": ""
9589+
},
9590+
{
9591+
"input": "///example.org/../../",
9592+
"base": "http://example.org/",
9593+
"href": "http://example.org/",
9594+
"protocol": "http:",
9595+
"username": "",
9596+
"password": "",
9597+
"host": "example.org",
9598+
"hostname": "example.org",
9599+
"port": "",
9600+
"pathname": "/",
9601+
"search": "",
9602+
"hash": ""
9603+
},
9604+
{
9605+
"input": "///example.org/../path/../../",
9606+
"base": "http://example.org/",
9607+
"href": "http://example.org/",
9608+
"protocol": "http:",
9609+
"username": "",
9610+
"password": "",
9611+
"host": "example.org",
9612+
"hostname": "example.org",
9613+
"port": "",
9614+
"pathname": "/",
9615+
"search": "",
9616+
"hash": ""
9617+
},
9618+
{
9619+
"input": "///example.org/../path/../../path",
9620+
"base": "http://example.org/",
9621+
"href": "http://example.org/path",
9622+
"protocol": "http:",
9623+
"username": "",
9624+
"password": "",
9625+
"host": "example.org",
9626+
"hostname": "example.org",
9627+
"port": "",
9628+
"pathname": "/path",
9629+
"search": "",
9630+
"hash": ""
9631+
},
9632+
{
9633+
"input": "/\\/\\//example.org/../path",
9634+
"base": "http://example.org/",
9635+
"href": "http://example.org/path",
9636+
"protocol": "http:",
9637+
"username": "",
9638+
"password": "",
9639+
"host": "example.org",
9640+
"hostname": "example.org",
9641+
"port": "",
9642+
"pathname": "/path",
9643+
"search": "",
9644+
"hash": ""
9645+
},
9646+
{
9647+
"input": "///abcdef/../",
9648+
"base": "file:///",
9649+
"href": "file:///",
9650+
"protocol": "file:",
9651+
"username": "",
9652+
"password": "",
9653+
"host": "",
9654+
"hostname": "",
9655+
"port": "",
9656+
"pathname": "/",
9657+
"search": "",
9658+
"hash": ""
9659+
},
9660+
{
9661+
"input": "/\\//\\/a/../",
9662+
"base": "file:///",
9663+
"href": "file://////",
9664+
"protocol": "file:",
9665+
"username": "",
9666+
"password": "",
9667+
"host": "",
9668+
"hostname": "",
9669+
"port": "",
9670+
"pathname": "////",
9671+
"search": "",
9672+
"hash": ""
9673+
},
9674+
{
9675+
"input": "//a/../",
9676+
"base": "file:///",
9677+
"href": "file://a/",
9678+
"protocol": "file:",
9679+
"username": "",
9680+
"password": "",
9681+
"host": "a",
9682+
"hostname": "a",
9683+
"port": "",
9684+
"pathname": "/",
9685+
"search": "",
9686+
"hash": ""
95329687
}
95339688
]

0 commit comments

Comments
 (0)