aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-06-21 09:06:48 -0600
committerbors-servo <metajack+bors@gmail.com>2015-06-21 09:06:48 -0600
commit8d2d41c97efa92b92b4dc5f4353592d561e33275 (patch)
tree326a5610644aa1e96a11d4206c1d7920bb850dc9
parentbf64e2765aeb88611e781abeae4360f69a3a6caa (diff)
parent4a90f21e42c60c34e47950ad387bb48573df753f (diff)
downloadservo-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.html2
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>