tor-browser

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

test_websocket5.html (1474B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></meta>
      5  <title>WebSocket test</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="text/javascript" src="websocket_helpers.js"></script>
      8  <script type="text/javascript" src="websocket_tests.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10 </head>
     11 <body onload="testWebSocket()">
     12 <script class="testbody" type="text/javascript">
     13 
     14 var tests = [
     15  test41, // HSTS
     16  test42, // non-char utf-8 sequences
     17  test43, // Test setting binaryType attribute
     18  test44, // Test sending/receving binary ArrayBuffer
     19  test45, // Test sending/receving binary Blob
     20  test46, // Test that we don't dispatch incoming msgs once in CLOSING state
     21  test47, // Make sure onerror/onclose aren't called during close()
     22  test48, // see bug 1227136 - client calls close() from onopen() and waits
     23          // until WebSocketChannel::mSocketIn is nulled out on socket thread
     24  test49, // Test that we fail if subprotocol returned from server doesn't match
     25 ];
     26 
     27 function testWebSocket() {
     28  doTest();
     29 }
     30 
     31 SimpleTest.requestFlakyTimeout("The web socket tests are really fragile, but avoiding timeouts might be hard, since it's testing stuff on the network. " +
     32                               "Expect all sorts of flakiness in this test...");
     33 SimpleTest.waitForExplicitFinish();
     34 
     35 </script>
     36 
     37 <div id="feedback">
     38 </div>
     39 
     40 </body>
     41 </html>