tor-browser

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

test_bug1697539.html (632B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 1697539</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8  <script type="application/javascript">
      9 
     10 "use strict";
     11 
     12 var worker = new Worker("worker_bug1697539.js");
     13 worker.onmessage = function(e) {
     14  is(e.data, "InvalidStateError", "Should get InvalidStateError");
     15  SimpleTest.finish();
     16 };
     17 
     18 function runTests() {
     19  worker.postMessage("http://localhost:8888");
     20 }
     21 
     22 SimpleTest.waitForExplicitFinish();
     23  </script>
     24 </head>
     25 <body onload="runTests()">
     26 </body>
     27 </html>