Skip to content

Commit cd6a779

Browse files
committed
Add test for file URL when path starts with windows drive letter
1 parent dba0e4d commit cd6a779

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

tests/urltestdata.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5342,6 +5342,49 @@
53425342
"search": "",
53435343
"hash": ""
53445344
},
5345+
"# Windows drive letter quirk with not empty host",
5346+
{
5347+
"input": "file://example.net/C:/",
5348+
"base": "about:blank",
5349+
"href": "file:///C:/",
5350+
"protocol": "file:",
5351+
"username": "",
5352+
"password": "",
5353+
"host": "",
5354+
"hostname": "",
5355+
"port": "",
5356+
"pathname": "/C:/",
5357+
"search": "",
5358+
"hash": ""
5359+
},
5360+
{
5361+
"input": "file://1.2.3.4/C:/",
5362+
"base": "about:blank",
5363+
"href": "file:///C:/",
5364+
"protocol": "file:",
5365+
"username": "",
5366+
"password": "",
5367+
"host": "",
5368+
"hostname": "",
5369+
"port": "",
5370+
"pathname": "/C:/",
5371+
"search": "",
5372+
"hash": ""
5373+
},
5374+
{
5375+
"input": "file://[1::8]/C:/",
5376+
"base": "about:blank",
5377+
"href": "file:///C:/",
5378+
"protocol": "file:",
5379+
"username": "",
5380+
"password": "",
5381+
"host": "",
5382+
"hostname": "",
5383+
"port": "",
5384+
"pathname": "/C:/",
5385+
"search": "",
5386+
"hash": ""
5387+
},
53455388
"# file URLs without base URL by Rimas Misevičius",
53465389
{
53475390
"input": "file:",

0 commit comments

Comments
 (0)