blob: 78551088e6a9f7fb936f17b1936b12c5472eee29 [file] [log] [blame]
<body>
<p>A basic test for JS execution on secondary threads. Passes if the browser didn't crash.</p>
<div id=result></div>
<script>
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var worker1 = new Worker('resources/stress-js-execution.js');
var worker2 = new Worker('resources/stress-js-execution.js');
worker1.onmessage = function(evt) {
log(evt.data);
}
worker2.onmessage = worker1.onmessage;
setTimeout("log('DONE'); if (window.testRunner) testRunner.notifyDone();", 1000);
</script>
</body>
</html>