Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / stress-js-execution.html
blob78551088e6a9f7fb936f17b1936b12c5472eee29
1 <body>
2 <p>A basic test for JS execution on secondary threads. Passes if the browser didn't crash.</p>
3 <div id=result></div>
4 <script>
5 function log(message)
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) {
19 log(evt.data);
22 worker2.onmessage = worker1.onmessage;
24 setTimeout("log('DONE'); if (window.testRunner) testRunner.notifyDone();", 1000);
26 </script>
27 </body>
28 </html>