tor-browser

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

Worker-timeout-increasing-order.js (343B)


      1 // The test will create 3 timeouts with their intervals increasing.
      2 // If the timeouts execute in order then the test is PASS.
      3 self.addEventListener('message', function(e) {
      4    setTimeout(function () { postMessage(1); }, 5);
      5    setTimeout(function () { postMessage(2); }, 10);
      6    setTimeout(function () { postMessage(3); }, 15);
      7 }, false);