2 <p>Test simultaneous shared worker construction case (document + iframe).
</p>
3 <p>Prints
"DONE" if the test is successful
</p>
8 document
.getElementById("result").innerHTML
+= message
+ "<br>";
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
16 var worker
= new SharedWorker('resources/shared-worker-count-connections.js');
17 worker
.port
.onmessage = function(event
) {
18 if (event
.data
== 2) {
26 if (window
.testRunner
)
27 testRunner
.notifyDone();
30 <iframe src='resources/shared-worker-iframe.html'
></iframe>