1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/workers/test/clearTimeouts_worker.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +var count = 0; 1.5 +function timerFunction() { 1.6 + if (++count == 30) { 1.7 + close(); 1.8 + postMessage("ready"); 1.9 + while (true) { } 1.10 + } 1.11 +} 1.12 + 1.13 +for (var i = 0; i < 10; i++) { 1.14 + setInterval(timerFunction, 500); 1.15 +}