Skip to content

Commit

Permalink
test: synchronize WPT url setters tests data
Browse files Browse the repository at this point in the history
Synchronize url-setter-test to upstream.

Refs: web-platform-tests/wpt#5112
  • Loading branch information
watilde committed Mar 18, 2017
1 parent 9d4d73f commit 18eebe9
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion test/fixtures/url-setter-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,55 @@
"protocol": "http:"
}
},
{
"href": "gopher://example.net:1234",
"new_value": "file",
"expected": {
"href": "gopher://example.net:1234/",
"protocol": "gopher:"
}
},
{
"href": "wss://x:[email protected]:1234",
"new_value": "file",
"expected": {
"href": "wss://x:[email protected]:1234/",
"protocol": "wss:"
}
},
{
"comment": "Can’t switch from file URL with no host",
"href": "file://localhost/",
"new_value": "http",
"expected": {
"href": "file:///",
"protocol": "file:"
}
},
{
"href": "file:///test",
"new_value": "gopher",
"expected": {
"href": "file:///test",
"protocol": "file:"
}
},
{
"href": "file:",
"new_value": "wss",
"expected": {
"href": "file:///",
"protocol": "file:"
}
},
{
"href": "file://hi/path",
"new_value": "s",
"expected": {
"href": "file://hi/path",
"protocol": "file:"
}
},
{
"href": "https://example.net",
"new_value": "s",
Expand Down Expand Up @@ -1177,4 +1226,4 @@
}
}
]
}
}

0 comments on commit 18eebe9

Please sign in to comment.