https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4f05c011be2ef38886088a09748b90dd2476d40f authored by Mugdha Lakhani on 18 October 2018, 15:50:21 UTC
[Background Fetch] Support access to active fetches.
Tip revision: 4f05c01
Create-nonAscii-protocol-string.any.js
// META: script=websocket.sub.js

test(function() {
  var nonAsciiProtocol = "\u0080echo";
  var wsocket;
  assert_throws("SYNTAX_ERR", function() {
    wsocket = CreateWebSocketNonAsciiProtocol(nonAsciiProtocol)
  });
}, "W3C WebSocket API - Create WebSocket - Pass a valid URL and a protocol string with non-ascii values - SYNTAX_ERR is thrown")
back to top