Explorar o código

Add tests for non-special schemes

Valentin Gosu %!s(int64=9) %!d(string=hai) anos
pai
achega
de4cc76b82
Modificáronse 1 ficheiros con 30 adicións e 0 borrados
  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",