|
|
@@ -840,6 +840,36 @@
|
|
|
"search": "",
|
|
|
"hash": ""
|
|
|
},
|
|
|
+ {
|
|
|
+ "input": "http://[::127.0.0.1]",
|
|
|
+ "base": "http://example.org/foo/bar",
|
|
|
+ "href": "http://[::7f00:1]/",
|
|
|
+ "origin": "http://[::7f00:1]",
|
|
|
+ "protocol": "http:",
|
|
|
+ "username": "",
|
|
|
+ "password": "",
|
|
|
+ "host": "[::7f00:1]",
|
|
|
+ "hostname": "[::7f00:1]",
|
|
|
+ "port": "",
|
|
|
+ "pathname": "/",
|
|
|
+ "search": "",
|
|
|
+ "hash": ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "input": "http://[0:0:0:0:0:0:13.1.68.3]",
|
|
|
+ "base": "http://example.org/foo/bar",
|
|
|
+ "href": "http://[::d01:4403]/",
|
|
|
+ "origin": "http://[::d01:4403]",
|
|
|
+ "protocol": "http:",
|
|
|
+ "username": "",
|
|
|
+ "password": "",
|
|
|
+ "host": "[::d01:4403]",
|
|
|
+ "hostname": "[::d01:4403]",
|
|
|
+ "port": "",
|
|
|
+ "pathname": "/",
|
|
|
+ "search": "",
|
|
|
+ "hash": ""
|
|
|
+ },
|
|
|
{
|
|
|
"input": "http://[2001::1]:80",
|
|
|
"base": "http://example.org/foo/bar",
|
|
|
@@ -1289,6 +1319,21 @@
|
|
|
"search": "",
|
|
|
"hash": "#test"
|
|
|
},
|
|
|
+ {
|
|
|
+ "input": "tel:1234567890",
|
|
|
+ "base": "http://example.org/foo/bar",
|
|
|
+ "href": "tel:1234567890",
|
|
|
+ "origin": "null",
|
|
|
+ "protocol": "tel:",
|
|
|
+ "username": "",
|
|
|
+ "password": "",
|
|
|
+ "host": "",
|
|
|
+ "hostname": "",
|
|
|
+ "port": "",
|
|
|
+ "pathname": "1234567890",
|
|
|
+ "search": "",
|
|
|
+ "hash": ""
|
|
|
+ },
|
|
|
"# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/file.html",
|
|
|
{
|
|
|
"input": "file:c:\\foo\\bar.html",
|
|
|
@@ -4273,5 +4318,43 @@
|
|
|
"search": "??a=b&c=d",
|
|
|
"searchParams": "%3Fa=b&c=d",
|
|
|
"hash": ""
|
|
|
+ },
|
|
|
+ "# Scheme only",
|
|
|
+ {
|
|
|
+ "input": "http:",
|
|
|
+ "base": "http://example.org/foo/bar",
|
|
|
+ "href": "http://example.org/foo/bar",
|
|
|
+ "origin": "http://example.org",
|
|
|
+ "protocol": "http:",
|
|
|
+ "username": "",
|
|
|
+ "password": "",
|
|
|
+ "host": "example.org",
|
|
|
+ "hostname": "example.org",
|
|
|
+ "port": "",
|
|
|
+ "pathname": "/foo/bar",
|
|
|
+ "search": "",
|
|
|
+ "searchParams": "",
|
|
|
+ "hash": ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "input": "http:",
|
|
|
+ "base": "https://example.org/foo/bar",
|
|
|
+ "failure": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "input": "sc:",
|
|
|
+ "base": "https://example.org/foo/bar",
|
|
|
+ "href": "sc:",
|
|
|
+ "origin": "null",
|
|
|
+ "protocol": "sc:",
|
|
|
+ "username": "",
|
|
|
+ "password": "",
|
|
|
+ "host": "",
|
|
|
+ "hostname": "",
|
|
|
+ "port": "",
|
|
|
+ "pathname": "",
|
|
|
+ "search": "",
|
|
|
+ "searchParams": "",
|
|
|
+ "hash": ""
|
|
|
}
|
|
|
]
|