mirror of
https://github.com/servo/servo.git
synced 2025-08-30 17:48: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
31b8384b93
commit
61a9f9d7d4
4 changed files with 26 additions and 11 deletions
|
@ -5,5 +5,10 @@
|
|||
<script src=../constants.js?pipe=sub></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {assert_throws("SyntaxError", function(){new WebSocket("ws://"+location.host+"/", 'a'+String.fromCharCode(0)+'b')})});
|
||||
test(function() {
|
||||
assert_throws("SyntaxError", function() {
|
||||
new WebSocket(SCHEME_DOMAIN_PORT + '/empty-message',
|
||||
'a' + String.fromCharCode(0) + 'b')
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue