2 <p>Test that multipe workers can be spawned simultaneously.
3 Should print
"DONE" when done.
</p>
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
13 document
.getElementById("result").innerHTML
+= message
+ "<br>";
19 for (var i
= 0; i
< totalWorkers
; i
++) {
20 var worker
= new Worker('resources/worker-init.js');
21 worker
.onmessage = function(evt
) {
23 if (++replies
< totalWorkers
)
26 if (window
.testRunner
)
27 testRunner
.notifyDone();