blob: e8d8f4bebea18fa07406812f714e5be69fc050c4 [file] [log] [blame]
<body>
<p>Test simultaneous shared worker construction case (document + iframe).</p>
<p>Prints "DONE" if the test is successful</p>
<div id=result></div>
<script>
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var worker = new SharedWorker('resources/shared-worker-count-connections.js');
worker.port.onmessage = function(event) {
if (event.data == 2) {
done();
}
};
function done()
{
log("DONE");
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<iframe src='resources/shared-worker-iframe.html'></iframe>
</body>