Skip to content

Commit

Permalink
URL: change null password handling
Browse files Browse the repository at this point in the history
URL Standard change: whatwg/url#186.
  • Loading branch information
annevk committed Dec 29, 2016
1 parent 5be497b commit f89847d
Showing 1 changed file with 64 additions and 4 deletions.
68 changes: 64 additions & 4 deletions url/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,66 @@
"search": "?b",
"hash": "#c"
},
{
"input": "https://test:@test",
"base": "about:blank",
"href": "https://test@test/",
"origin": "https://test",
"protocol": "https:",
"username": "test",
"password": "",
"host": "test",
"hostname": "test",
"port": "",
"pathname": "/",
"search": "",
"hash": ""
},
{
"input": "https://:@test",
"base": "about:blank",
"href": "https://test/",
"origin": "https://test",
"protocol": "https:",
"username": "",
"password": "",
"host": "test",
"hostname": "test",
"port": "",
"pathname": "/",
"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",
Expand Down Expand Up @@ -3096,7 +3156,7 @@
{
"input": "http:a:@www.example.com",
"base": "about:blank",
"href": "http://a:@www.example.com/",
"href": "http://[email protected]/",
"origin": "http://www.example.com",
"protocol": "http:",
"username": "a",
Expand All @@ -3111,7 +3171,7 @@
{
"input": "http:/a:@www.example.com",
"base": "about:blank",
"href": "http://a:@www.example.com/",
"href": "http://[email protected]/",
"origin": "http://www.example.com",
"protocol": "http:",
"username": "a",
Expand All @@ -3126,7 +3186,7 @@
{
"input": "http://a:@www.example.com",
"base": "about:blank",
"href": "http://a:@www.example.com/",
"href": "http://[email protected]/",
"origin": "http://www.example.com",
"protocol": "http:",
"username": "a",
Expand Down Expand Up @@ -3171,7 +3231,7 @@
{
"input": "http://:@www.example.com",
"base": "about:blank",
"href": "http://:@www.example.com/",
"href": "http://www.example.com/",
"origin": "http://www.example.com",
"protocol": "http:",
"username": "",
Expand Down

0 comments on commit f89847d

Please sign in to comment.