| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <p>Test that multipe workers can be spawned simultaneously. | 2 <p>Test that multipe workers can be spawned simultaneously. |
| 3 Should print "DONE" when done.</p> | 3 Should print "DONE" when done.</p> |
| 4 <div id=result></div> | 4 <div id=result></div> |
| 5 <script> | 5 <script> |
| 6 if (window.layoutTestController) { | 6 if (window.layoutTestController) { |
| 7 layoutTestController.dumpAsText(); | 7 layoutTestController.dumpAsText(); |
| 8 layoutTestController.waitUntilDone(); | 8 layoutTestController.waitUntilDone(); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 log(evt.data); | 22 log(evt.data); |
| 23 if (++replies < totalWorkers) | 23 if (++replies < totalWorkers) |
| 24 return; | 24 return; |
| 25 log("DONE"); | 25 log("DONE"); |
| 26 if (window.layoutTestController) | 26 if (window.layoutTestController) |
| 27 layoutTestController.notifyDone(); | 27 layoutTestController.notifyDone(); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 </script> | 30 </script> |
| 31 </body> | 31 </body> |
| OLD | NEW |