https://github.com/web-platform-tests/wpt
Raw File
Tip revision: caabb339c4b96dfc4a9e42a40c118e5df7ccd070 authored by Tarun Bansal on 07 May 2018, 19:22:03 UTC
Add client hints headers as CORS safe headers
Tip revision: caabb33
Create-Secure-url-with-space.any.js
// META: script=websocket.sub.js

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