Fix the URL port setter tests

https://github.com/whatwg/url/pull/113
This commit is contained in:
Anthony Ramine 2016-11-08 09:20:23 +01:00
parent f1c3e97fb4
commit ebe5f85ac5
2 changed files with 8 additions and 14 deletions

View file

@ -346,14 +346,14 @@
}
},
{
"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 removed if empty in the new value",
"href": "http://example.net:8080",
"new_value": "example.com:",
"expected": {
"href": "http://example.com:8080/",
"host": "example.com:8080",
"href": "http://example.com/",
"host": "example.com",
"hostname": "example.com",
"port": "8080"
"port": ""
}
},
{
@ -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 in 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": ""
}
},
{