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