tor-browser

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

test_worker_xhr2.html (948B)


      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 Threads XHR(Bug 450452 )
      9 -->
     10 <head>
     11  <title>Test for DOM Worker Threads XHR (Bug 450452 )</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 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=450452">DOM Worker Threads XHR (Bug 450452)</a>
     17 <p id="display"></p>
     18 <div id="content" style="display: none">
     19 
     20 </div>
     21 <pre id="test">
     22 <script class="testbody" type="text/javascript">
     23 
     24  var worker = new Worker("xhr2_worker.js");
     25 
     26  worker.onmessage = function(event) {
     27    is(event.data, "done", "Got correct result");
     28    SimpleTest.finish();
     29  }
     30  worker.postMessage("worker_testXHR.txt");
     31 
     32  SimpleTest.waitForExplicitFinish();
     33 
     34 </script>
     35 </pre>
     36 </body>
     37 </html>