Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-multi-startup.html
blob331efc5daedae190583f7c298ee94a4f1de68329
1 <head>
2 <p>Test that multipe workers can be spawned simultaneously.
3 Should print "DONE" when done.</p>
4 <div id=result></div>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 function log(message)
13 document.getElementById("result").innerHTML += message + "<br>";
16 totalWorkers = 30;
17 replies = 0;
19 for (var i = 0; i < totalWorkers; i++) {
20 var worker = new Worker('resources/worker-init.js');
21 worker.onmessage = function(evt) {
22 log(evt.data);
23 if (++replies < totalWorkers)
24 return;
25 log("DONE");
26 if (window.testRunner)
27 testRunner.notifyDone();
30 </script>
31 </body>