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 21, 2017
1 parent 0705cd5 commit 4bc60b1
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 @@ -1114,6 +1114,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 4bc60b1

Please sign in to comment.