Skip to content

Commit

Permalink
URL: test more whitespace stripping intricacies
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu authored and domenic committed May 10, 2017
1 parent 6fe674b commit 5ae94e1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions url/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3559,6 +3559,22 @@
"search": "",
"hash": ""
},
"Leading and trailing C0 control or space",
{
"input": "\u0000\u001b\u0004\u0012 http://example.com/\u001f \u000d ",
"base": "about:blank",
"href": "http://example.com/",
"origin": "http://example.com",
"protocol": "http:",
"username": "",
"password": "",
"host": "example.com",
"hostname": "example.com",
"port": "",
"pathname": "/",
"search": "",
"hash": ""
},
"Ideographic full stop (full-width period for Chinese, etc.) should be treated as a dot. U+3002 is mapped to U+002E (dot)",
{
"input": "http://www.foo。bar.com",
Expand Down Expand Up @@ -5480,6 +5496,20 @@
"search": "",
"hash": ""
},
{
"input": "C|\n/",
"base": "file://host/dir/file",
"href": "file:///C:/",
"protocol": "file:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "/C:/",
"search": "",
"hash": ""
},
{
"input": "C|\\",
"base": "file://host/dir/file",
Expand Down

0 comments on commit 5ae94e1

Please sign in to comment.