chromium/third_party/blink/web_tests/http/tests/websocket/workers/close-in-onmessage-crash.html

<!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.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-onmessage-crash.js');
worker.onmessage = function (evt) {
    log(evt.data);
    if (evt.data == "DONE")
        endTest();
};
</script>
</body>
</html>