aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js
blob: f6ca19e04726a428fd8c635dc65919ca953c0479 (plain) (blame)
1
2
3
4
5
6
7
8
9
// META: script=websocket.sub.js

test(function() {
  var wsocket;
  var spaceUrl = "web platform.test";
  assert_throws("SYNTAX_ERR", function() {
    wsocket = CreateWebSocketWithSpaceInUrl(spaceUrl)
  });
}, "Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")