tor-browser

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

Send-before-open.any.js (365B)


      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 wsocket = CreateWebSocket(false, false);
      8  assert_throws_dom("INVALID_STATE_ERR", function() {
      9    wsocket.send("Message to send")
     10  });
     11 }, "Send data on a WebSocket before connection is opened - INVALID_STATE_ERR is returned")