mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
9 lines
314 B
JavaScript
9 lines
314 B
JavaScript
// META: script=websocket.sub.js
|
|
|
|
test(function() {
|
|
var wsocket;
|
|
var spaceUrl = "web platform.test";
|
|
assert_throws("SYNTAX_ERR", function() {
|
|
wsocket = CreateWebSocketWithSpaceInUrl(spaceUrl)
|
|
});
|
|
}, "W3C WebSocket API - Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")
|