Эх сурвалжийг харах

Add test for file URL when path starts with windows drive letter

Valentin Gosu 9 жил өмнө
parent
commit
cd6a77942e
1 өөрчлөгдсөн 43 нэмэгдсэн , 0 устгасан
  1. 43 0
      tests/urltestdata.json

+ 43 - 0
tests/urltestdata.json

@@ -5342,6 +5342,49 @@
     "search": "",
     "hash": ""
   },
+  "# Windows drive letter quirk with not empty host",
+  {
+    "input": "file://example.net/C:/",
+    "base": "about:blank",
+    "href": "file:///C:/",
+    "protocol": "file:",
+    "username": "",
+    "password": "",
+    "host": "",
+    "hostname": "",
+    "port": "",
+    "pathname": "/C:/",
+    "search": "",
+    "hash": ""
+  },
+  {
+    "input": "file://1.2.3.4/C:/",
+    "base": "about:blank",
+    "href": "file:///C:/",
+    "protocol": "file:",
+    "username": "",
+    "password": "",
+    "host": "",
+    "hostname": "",
+    "port": "",
+    "pathname": "/C:/",
+    "search": "",
+    "hash": ""
+  },
+  {
+    "input": "file://[1::8]/C:/",
+    "base": "about:blank",
+    "href": "file:///C:/",
+    "protocol": "file:",
+    "username": "",
+    "password": "",
+    "host": "",
+    "hostname": "",
+    "port": "",
+    "pathname": "/C:/",
+    "search": "",
+    "hash": ""
+  },
   "# file URLs without base URL by Rimas Misevičius",
   {
     "input": "file:",