comparison: dom/workers/test/clearTimeouts_worker.js
dom/workers/test/clearTimeouts_worker.js
- branch
- TOR_BUG_9701
- changeset 14
- 925c144e1f1f
equal
deleted
inserted
replaced
|
1 var count = 0; |
|
2 function timerFunction() { |
|
3 if (++count == 30) { |
|
4 close(); |
|
5 postMessage("ready"); |
|
6 while (true) { } |
|
7 } |
|
8 } |
|
9 |
|
10 for (var i = 0; i < 10; i++) { |
|
11 setInterval(timerFunction, 500); |
|
12 } |