mirror of
https://github.com/servo/servo.git
synced 2025-08-29 09:08:20 +01:00
Don't try to connect to "ws://"+location.host+"/" in WebSocket tests.
This will connect on port 80, which is not typically under the control of the wpt server.
This commit is contained in:
parent
6b886e545d
commit
e8d691aa03
7 changed files with 512 additions and 16 deletions
|
@ -6,6 +6,6 @@
|
|||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_true(new WebSocket("ws://"+location.host+"/") instanceof WebSocket);
|
||||
assert_true(new WebSocket(SCHEME_DOMAIN_PORT + '/empty-message') instanceof WebSocket);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue