tor-browser

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

test_bug1824498.html (918B)


      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 Worker Import failure (Bug 1824498)</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 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1824498">
     14 Worker Import failure test: Bug 1824498
     15 </a>
     16 <p id="display"></p>
     17 <div id="content" style="display: none">
     18 
     19 </div>
     20 <pre id="test">
     21 <script class="testbody" type="text/javascript">
     22 
     23 SimpleTest.waitForExplicitFinish();
     24 
     25 document.addEventListener("DOMContentLoaded", async () => {
     26  const worker = new Worker("worker_bug1824498.mjs", {"type": "module"})
     27  worker.onerror = function(event) {
     28    ok(true, "not assert");
     29    SimpleTest.finish();
     30  };
     31 });
     32 </script>
     33 </pre>
     34 </body>
     35 </html>