blob: f2bea5b9d9f7639db8645d1d8e3f3dc67aab62b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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")
|