Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / shared-worker-simple.html
blob005f5965004a5b5cd275ca8fc218739c7097a4ed
1 <body>
2 <p>Test simple shared worker construction case.</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 worker = new SharedWorker('resources/shared-worker-common.js', 'name');
17 worker.port.postMessage("ping");
18 worker.port.postMessage("done");
20 worker.port.onmessage = function(event) {
21 log(event.data);
22 if (event.data == "DONE")
23 done();
26 function done()
28 if (window.testRunner)
29 testRunner.notifyDone();
31 </script>
32 </body>