Procházet zdrojové kódy

Add tests for non-special schemes

Valentin Gosu před 9 roky
rodič
revize
de4cc76b82
1 změnil soubory, kde provedl 30 přidání a 0 odebrání
  1. 30 0
      tests/urltestdata.json

+ 30 - 0
tests/urltestdata.json

@@ -60,6 +60,36 @@
     "search": "",
     "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",
     "base": "http://example.org/foo/bar",