2 <p>A basic test for JS execution on secondary threads. Passes if the browser didn't crash.
</p>
7 document
.getElementById("result").innerHTML
+= message
+ "<br>";
10 if (window
.testRunner
) {
11 testRunner
.dumpAsText();
12 testRunner
.waitUntilDone();
15 var worker1
= new Worker('resources/stress-js-execution.js');
16 var worker2
= new Worker('resources/stress-js-execution.js');
18 worker1
.onmessage = function(evt
) {
22 worker2
.onmessage
= worker1
.onmessage
;
24 setTimeout("log('DONE'); if (window.testRunner) testRunner.notifyDone();", 1000);