tor-browser

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

test_websocket_sharedWorker.html (702B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <!DOCTYPE HTML>
      6 <html>
      7 <head>
      8  <title>Test for bug 1090183</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     11 </head>
     12 <body>
     13 
     14 <script class="testbody" type="text/javascript">
     15 
     16 var sw = new SharedWorker('websocket_sharedWorker.js');
     17 sw.port.onmessage = function(event) {
     18  if (event.data.type == 'finish') {
     19    SimpleTest.finish();
     20  } else if (event.data.type == 'status') {
     21    ok(event.data.status, event.data.msg);
     22  }
     23 }
     24 
     25 SimpleTest.waitForExplicitFinish();
     26 
     27 </script>
     28 </pre>
     29 </body>
     30 </html>