blob: 21dcec12d57dc5cad9cbb5aa0ea7b1192e4adbaf [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head></head>
<body>
<p>Test for WebSocket close in Worker.</p>
<p></p>
<p>On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".</p>
<pre id=log>
</pre>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function log(message)
{
document.getElementById("log").innerHTML += message + "\n";
}
function endTest()
{
log("TEST COMPLETE");
if (window.testRunner)
testRunner.notifyDone();
}
var worker = new Worker('resources/close-in-worker.js');
worker.onmessage = function (evt) {
log(evt.data);
if (evt.data == "DONE")
endTest();
};
</script>
</body>
</html>