tor-browser

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

constructor.any.js (376B)


      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 ws = new WebSocket(SCHEME_DOMAIN_PORT + "/" + __PATH,
      8    "echo", "Stray argument")
      9  assert_true(ws instanceof WebSocket, "Expected a WebSocket instance.")
     10 }, "Calling the WebSocket constructor with too many arguments should not throw.")