2 <p>Test simple shared worker construction case.
</p>
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
) {
22 if (event
.data
== "DONE")
28 if (window
.testRunner
)
29 testRunner
.notifyDone();