servo/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js

7 lines
356 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")