tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Create-asciiSep-protocol-string.any.js (406B)


      1 // META: script=constants.sub.js
      2 // META: variant=?default
      3 // META: variant=?wss
      4 // META: variant=?wpt_flags=h2
      5 
      6 test(function() {
      7  var asciiWithSep = "/echo";
      8  var wsocket;
      9  assert_throws_dom("SYNTAX_ERR", function() {
     10    wsocket = CreateWebSocketWithAsciiSep(asciiWithSep)
     11  });
     12 }, "Create WebSocket - Pass a valid URL and a protocol string with an ascii separator character - SYNTAX_ERR is thrown")