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

Add tests for non-special schemes

Valentin Gosu 9 жил өмнө
parent
commit
de4cc76b82

+ 30 - 0
tests/urltestdata.json

@@ -60,6 +60,36 @@
     "search": "",
     "search": "",
     "hash": ""
     "hash": ""
   },
   },
+  {
+    "input": "non-special://test:@test/x",
+    "base": "about:blank",
+    "href": "non-special://test@test/x",
+    "origin": "null",
+    "protocol": "non-special:",
+    "username": "test",
+    "password": "",
+    "host": "test",
+    "hostname": "test",
+    "port": "",
+    "pathname": "/x",
+    "search": "",
+    "hash": ""
+  },
+  {
+    "input": "non-special://:@test/x",
+    "base": "about:blank",
+    "href": "non-special://test/x",
+    "origin": "null",
+    "protocol": "non-special:",
+    "username": "",
+    "password": "",
+    "host": "test",
+    "hostname": "test",
+    "port": "",
+    "pathname": "/x",
+    "search": "",
+    "hash": ""
+  },
   {
   {
     "input": "http:foo.com",
     "input": "http:foo.com",
     "base": "http://example.org/foo/bar",
     "base": "http://example.org/foo/bar",