Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions test/fixtures/wpt/url/resources/urltestdata-javascript-only.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,20 @@
"pathname": "/%EF%BF%BD/b/c",
"search": "",
"hash": ""
},
{
"input": "http://www.google.com/asdf#\uD800",
"base": null,
"href": "http://www.google.com/asdf#%EF%BF%BD",
"origin": "http://www.google.com",
"protocol": "http:",
"username": "",
"password": "",
"host": "www.google.com",
"hostname": "www.google.com",
"port": "",
"pathname": "/asdf",
"search": "",
"hash": "#%EF%BF%BD"
}
]
116 changes: 116 additions & 0 deletions test/fixtures/wpt/url/resources/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3748,6 +3748,96 @@
"search": "",
"hash": ""
},
{
"input": "HTTP://example.com/",
"base": null,
"href": "http://example.com/",
"origin": "http://example.com",
"protocol": "http:",
"username": "",
"password": "",
"host": "example.com",
"hostname": "example.com",
"port": "",
"pathname": "/",
"search": "",
"hash": ""
},
{
"input": "javascript:",
"base": null,
"href": "javascript:",
"origin": "null",
"protocol": "javascript:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "",
"search": "",
"hash": ""
},
{
"input": "JavaScript:Foo",
"base": null,
"href": "javascript:Foo",
"origin": "null",
"protocol": "javascript:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "Foo",
"search": "",
"hash": ""
},
{
"input": "javascript:alert(\t 1 \n\r)",
"base": null,
"href": "javascript:alert( 1 )",
"origin": "null",
"protocol": "javascript:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "alert( 1 )",
"search": "",
"hash": ""
},
{
"input": "javascript:alert(\" \u0001 \u03B2 \")",
"base": null,
"href": "javascript:alert(\" %01 %CE%B2 \")",
"origin": "null",
"protocol": "javascript:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "alert(\" %01 %CE%B2 \")",
"search": "",
"hash": ""
},
{
"input": "http:////////user:@google.com:99?foo",
"base": null,
"href": "http://user@google.com:99/?foo",
"origin": "http://google.com:99",
"protocol": "http:",
"username": "user",
"password": "",
"host": "google.com:99",
"hostname": "google.com",
"port": "99",
"pathname": "/",
"search": "?foo",
"hash": ""
},
"# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/host.html",
"Basic canonicalization, uppercase should be converted to lowercase",
{
Expand Down Expand Up @@ -4164,6 +4254,17 @@
"base": "http://other.com/",
"failure": true
},
"Fullwidth solidus and colon are mapped to forbidden domain code points",
{
"input": "http://example.com/foo/",
"base": null,
"failure": true
},
{
"input": "http://www.lookout.net:80/",
"base": null,
"failure": true
},
"Basic IDN support, UTF-8 and UTF-16 input should be converted to IDN",
{
"input": "http://你好你好",
Expand Down Expand Up @@ -4394,6 +4495,21 @@
"base": "http://other.com/",
"failure": true
},
{
"input": "http://[2001::1",
"base": null,
"failure": true
},
{
"input": "http://[[::]]",
"base": null,
"failure": true
},
{
"input": "http://[61:27]:98",
"base": null,
"failure": true
},
"Misc Unicode",
{
"input": "http://foo:💩@example.com/bar",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"path": "streams"
},
"url": {
"commit": "2fa965b55c94cbb2f15324aa8a149500fd5f05f9",
"commit": "d29e99bec8fbf722fda01122834433e967427c6d",
"path": "url"
},
"urlpattern": {
Expand Down
Loading