Skip to content

Commit

Permalink
test state override
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jan 27, 2017
1 parent e8bdfc0 commit 70e9b11
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions url/setters_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,33 @@
"href": "http://example.net/%3F",
"pathname": "/%3F"
}
},
{
"comment": "# needs to be encoded",
"href": "http://example.net",
"new_value": "#",
"expected": {
"href": "http://example.net/%23",
"pathname": "/%23"
}
},
{
"comment": "? needs to be encoded, non-special scheme",
"href": "sc://example.net",
"new_value": "?",
"expected": {
"href": "sc://example.net/%3F",
"pathname": "/%3F"
}
},
{
"comment": "# needs to be encoded, non-special scheme",
"href": "sc://example.net",
"new_value": "#",
"expected": {
"href": "sc://example.net/%23",
"pathname": "/%23"
}
}
],
"search": [
Expand Down

0 comments on commit 70e9b11

Please sign in to comment.