chromium/third_party/blink/web_tests/http/tests/websocket/workers/shared-worker-simple.html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head></head>
<body>
<p>Test for WebSocket in SharedWorker.</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 SharedWorker('resources/worker-simple.js', 'websocketSimple');
worker.port.onmessage = function (evt) {
    log(evt.data);
    if (evt.data == "DONE")
        endTest();
};
</script>
</body>
</html>