Skip to content

Commit

Permalink
URL: test host parsing of URLs with unknown schemes
Browse files Browse the repository at this point in the history
URL Standard change: whatwg/url#185.
  • Loading branch information
annevk committed Dec 29, 2016
1 parent 5be497b commit 2c87b7d
Showing 1 changed file with 63 additions and 3 deletions.
66 changes: 63 additions & 3 deletions url/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4180,18 +4180,78 @@
{
"input": "sc://ñ.test/",
"base": "about:blank",
"href": "sc://xn--ida.test/",
"href": "sc://%C3%B1.test/",
"origin": "null",
"protocol": "sc:",
"username": "",
"password": "",
"host": "xn--ida.test",
"hostname": "xn--ida.test",
"host": "%C3%B1.test",
"hostname": "%C3%B1.test",
"port": "",
"pathname": "/",
"search": "",
"hash": ""
},
{
"input": "sc://ñ",
"base": "about:blank",
"href": "sc://%C3%B1",
"origin": "null",
"protocol": "sc:",
"username": "",
"password": "",
"host": "%C3%B1",
"hostname": "%C3%B1",
"port": "",
"pathname": "",
"search": "",
"hash": ""
},
{
"input": "x",
"base": "sc://ñ",
"href": "sc://%C3%B1/x",
"origin": "null",
"protocol": "sc:",
"username": "",
"password": "",
"host": "%C3%B1",
"hostname": "%C3%B1",
"port": "",
"pathname": "/x",
"search": "",
"hash": ""
},
{
"input": "#x",
"base": "sc://ñ",
"href": "sc://%C3%B1/#x",
"origin": "null",
"protocol": "sc:",
"username": "",
"password": "",
"host": "%C3%B1",
"hostname": "%C3%B1",
"port": "",
"pathname": "/",
"search": "",
"hash": "#x"
},
{
"input": "?x",
"base": "sc://ñ",
"href": "sc://%C3%B1/?x",
"origin": "null",
"protocol": "sc:",
"username": "",
"password": "",
"host": "%C3%B1",
"hostname": "%C3%B1",
"port": "",
"pathname": "/",
"search": "?x",
"hash": ""
},
"# unknown schemes and backslashes",
{
"input": "sc:\\../",
Expand Down

0 comments on commit 2c87b7d

Please sign in to comment.