blob: d1e1ea1cba924970db4755eccc83f79b166038aa [file] [log] [blame]
// META: script=constants.sub.js
// META: variant=
// 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")