diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-06-21 09:06:48 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-06-21 09:06:48 -0600 |
commit | 8d2d41c97efa92b92b4dc5f4353592d561e33275 (patch) | |
tree | 326a5610644aa1e96a11d4206c1d7920bb850dc9 | |
parent | bf64e2765aeb88611e781abeae4360f69a3a6caa (diff) | |
parent | 4a90f21e42c60c34e47950ad387bb48573df753f (diff) | |
download | servo-8d2d41c97efa92b92b4dc5f4353592d561e33275.tar.gz servo-8d2d41c97efa92b92b4dc5f4353592d561e33275.zip |
Auto merge of #6441 - Ms2ger:fix-test, r=nox
Use hostname rather than host when appending a port manually.
The host attribute returns the port as well as the hostname.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6441)
<!-- Reviewable:end -->
-rw-r--r-- | tests/wpt/web-platform-tests/websockets/constructor/017.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/websockets/constructor/017.html b/tests/wpt/web-platform-tests/websockets/constructor/017.html index 2177ecacb97..69358ec65dc 100644 --- a/tests/wpt/web-platform-tests/websockets/constructor/017.html +++ b/tests/wpt/web-platform-tests/websockets/constructor/017.html @@ -13,6 +13,6 @@ var tests = [ ]; //Pass condition is to not throw for (var i = 0; i < tests.length; ++i) { - test(function(){new WebSocket(tests[i][0] + location.host + ':' + tests[i][1] + '/echo')}, tests[i][0]); + test(function(){new WebSocket(tests[i][0] + location.hostname + ':' + tests[i][1] + '/echo')}, tests[i][0]); } </script> |