tor-browser

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

test_instanceof.html (873B)


      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 <!--
      8 Tests of DOM Worker JSON messages
      9 -->
     10 <head>
     11  <title>Test for DOM Worker Navigator</title>
     12  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     13  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     14 </head>
     15 <body>
     16 <p id="display"></p>
     17 <div id="content" style="display: none">
     18 
     19 </div>
     20 <pre id="test">
     21 <script src="json_worker.js" language="javascript"></script>
     22 <script class="testbody" language="javascript">
     23 
     24  var worker = new Worker("instanceof_worker.js");
     25 
     26  worker.onmessage = function(event) {
     27    ok(event.data.status, event.data.event);
     28 
     29    if (event.data.last)
     30      SimpleTest.finish();
     31  };
     32 
     33  worker.postMessage(42);
     34 
     35  SimpleTest.waitForExplicitFinish();
     36 
     37 </script>
     38 </pre>
     39 </body>
     40 </html>