tor-browser

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

websocket2.worker.js (744B)


      1 /* exported tests */
      2 
      3 importScripts("websocket_helpers.js");
      4 importScripts("websocket_tests.js");
      5 importScripts("websocket_worker_helpers.js");
      6 
      7 var tests = [
      8  test11, // a simple hello echo;
      9  test12, // client sends a message containing unpaired surrogates
     10  test13, //server sends an invalid message;
     11  test14, // server sends the close frame, it doesn't close the tcp connection
     12  // and it keeps sending normal ws messages;
     13  test15, // server closes the tcp connection, but it doesn't send the close
     14  // frame;
     15  test16, // client calls close() and tries to send a message;
     16  test18, // client tries to connect to an http resource;
     17  test19, // server closes the tcp connection before establishing the ws
     18  // connection;
     19 ];
     20 
     21 doTest();