Skip to content

Commit 0760d3d

Browse files
rmisevjakearchibald
authored andcommitted
URL: Windows drive letter quirk in the file slash state
Test Windows drive letter quirk in the file slash state: https://url.spec.whatwg.org/#file-slash-state URL Standard: whatwg/url#343.
1 parent 15005df commit 0760d3d

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

url/urltestdata.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5564,6 +5564,63 @@
55645564
"search": "",
55655565
"hash": ""
55665566
},
5567+
"# Windows drive letter quirk in the file slash state",
5568+
{
5569+
"input": "/c:/foo/bar",
5570+
"base": "file:///c:/baz/qux",
5571+
"href": "file:///c:/foo/bar",
5572+
"protocol": "file:",
5573+
"username": "",
5574+
"password": "",
5575+
"host": "",
5576+
"hostname": "",
5577+
"port": "",
5578+
"pathname": "/c:/foo/bar",
5579+
"search": "",
5580+
"hash": ""
5581+
},
5582+
{
5583+
"input": "/c|/foo/bar",
5584+
"base": "file:///c:/baz/qux",
5585+
"href": "file:///c:/foo/bar",
5586+
"protocol": "file:",
5587+
"username": "",
5588+
"password": "",
5589+
"host": "",
5590+
"hostname": "",
5591+
"port": "",
5592+
"pathname": "/c:/foo/bar",
5593+
"search": "",
5594+
"hash": ""
5595+
},
5596+
{
5597+
"input": "file:\\c:\\foo\\bar",
5598+
"base": "file:///c:/baz/qux",
5599+
"href": "file:///c:/foo/bar",
5600+
"protocol": "file:",
5601+
"username": "",
5602+
"password": "",
5603+
"host": "",
5604+
"hostname": "",
5605+
"port": "",
5606+
"pathname": "/c:/foo/bar",
5607+
"search": "",
5608+
"hash": ""
5609+
},
5610+
{
5611+
"input": "/c:/foo/bar",
5612+
"base": "file://host/path",
5613+
"href": "file:///c:/foo/bar",
5614+
"protocol": "file:",
5615+
"username": "",
5616+
"password": "",
5617+
"host": "",
5618+
"hostname": "",
5619+
"port": "",
5620+
"pathname": "/c:/foo/bar",
5621+
"search": "",
5622+
"hash": ""
5623+
},
55675624
"# Windows drive letter quirk with not empty host",
55685625
{
55695626
"input": "file://example.net/C:/",

0 commit comments

Comments
 (0)