Skip to content

Commit

Permalink
URL: setting port to the empty string should null port
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Oct 28, 2016
1 parent 6787b5b commit a6d3d9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions url/setters_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
}
},
{
"comment": "Port number is unchanges if empty in the new value. Note: this may change, see https://github.com/whatwg/url/pull/113",
"comment": "Port number is unchanged if not specified",
"href": "http://example.net:8080",
"new_value": "example.com:",
"expected": {
Expand Down Expand Up @@ -761,14 +761,14 @@
}
},
{
"comment": "Port number is unchanged if empty in the new value. Note: this may change, see https://github.com/whatwg/url/pull/113",
"comment": "Port number is removed if empty is the new value",
"href": "http://example.net:8080",
"new_value": "",
"expected": {
"href": "http://example.net:8080/",
"host": "example.net:8080",
"href": "http://example.net/",
"host": "example.net",
"hostname": "example.net",
"port": "8080"
"port": ""
}
},
{
Expand Down

0 comments on commit a6d3d9b

Please sign in to comment.