mirror of
https://github.com/servo/servo.git
synced 2025-10-09 13:09:25 +01:00
12 lines
362 B
JavaScript
12 lines
362 B
JavaScript
// 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")
|