Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /websockets/Create-url-with-space.any.html?default - WPT Dashboard Interop Dashboard
- /websockets/Create-url-with-space.any.html?wpt_flags=h2 - WPT Dashboard Interop Dashboard
- /websockets/Create-url-with-space.any.html?wss - WPT Dashboard Interop Dashboard
- /websockets/Create-url-with-space.any.worker.html?default - WPT Dashboard Interop Dashboard
- /websockets/Create-url-with-space.any.worker.html?wpt_flags=h2 - WPT Dashboard Interop Dashboard
- /websockets/Create-url-with-space.any.worker.html?wss - WPT Dashboard Interop Dashboard
// META: script=constants.sub.js
// META: variant=?default
// META: variant=?wpt_flags=h2
// META: variant=?wss
test(function() {
var wsocket;
var spaceUrl = "web platform.test";
assert_throws_dom("SYNTAX_ERR", function() {
wsocket = CreateWebSocketWithSpaceInUrl(spaceUrl)
});
}, "Create WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")