tor-browser

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

WorkerLocation.htm (531B)


      1 <!DOCTYPE html>
      2 <title> WorkerLocation object </title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id=log></div>
      6 <script>
      7 async_test(function(t) {
      8  var worker = new Worker('./support/WorkerLocation.js');
      9  worker.onmessage = t.step_func_done(function(e) {
     10    var href = window.location.href;
     11    var ExpectedResult = href.substring(0, href.lastIndexOf('/')) + '/support/WorkerLocation.js';
     12    assert_equals(e.data.location, ExpectedResult);
     13  });
     14 });
     15 </script>