blob: 2805949a3148d3e0075b1cb55bf8128136c01d52 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head></head>
<body>
<p>Nested creation of two WebSockets should not cause a crash.</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.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
}
function log(message)
{
document.getElementById("log").innerHTML += message + "\n";
}
function endTest()
{
log("TEST COMPLETE");
if (window.layoutTestController)
layoutTestController.notifyDone();
}
var worker = new Worker('resources/close-in-onmessage-crash.js');
worker.onmessage = function (evt) {
log(evt.data);
if (evt.data == "DONE")
endTest();
};
</script>
</body>
</html>