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 -->
This commit is contained in:
bors-servo 2015-06-21 09:06:48 -06:00
commit 8d2d41c97e

View file

@ -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>