tor-browser

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

number-arguments.html (459B)


      1 <!doctype html>
      2 <title>1 as arguments</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script>
      6 async_test(t => {
      7  const worker = new SharedWorker(1, 1);
      8  worker.port.onmessage = t.step_func_done(e => {
      9    assert_equals(e.data[0], '1', 'first arg (script name)');
     10    assert_equals(e.data[1], '1', 'second arg (worker name)');
     11  });
     12 }, 'Test constructing a shared worker with 1');
     13 </script>