Skip to content

Commit

Permalink
Add tests for non-special schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
valenting committed Oct 31, 2017
1 parent 2f479ab commit de4cc76
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit de4cc76

Please sign in to comment.