diff options
Diffstat (limited to 'dom/workers/test/clearTimeouts_worker.js')
-rw-r--r-- | dom/workers/test/clearTimeouts_worker.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/workers/test/clearTimeouts_worker.js b/dom/workers/test/clearTimeouts_worker.js new file mode 100644 index 000000000..b471515b3 --- /dev/null +++ b/dom/workers/test/clearTimeouts_worker.js @@ -0,0 +1,12 @@ +var count = 0; +function timerFunction() { + if (++count == 30) { + close(); + postMessage("ready"); + while (true) { } + } +} + +for (var i = 0; i < 10; i++) { + setInterval(timerFunction, 500); +} |