mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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:
commit
8d2d41c97e
1 changed files with 1 additions and 1 deletions
|
@ -13,6 +13,6 @@ var tests = [
|
||||||
];
|
];
|
||||||
//Pass condition is to not throw
|
//Pass condition is to not throw
|
||||||
for (var i = 0; i < tests.length; ++i) {
|
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>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue