blob: 593363bc96ebb47fb9f0d5391fd88320a2d2f21b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src *; script-src 'nonce-test'">
<script nonce="test">
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<pre id="console"></pre>
<script nonce="test">
function log(message)
{
document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
}
try {
new WebSocket("wss://127.0.0.1:9323/websocket/tests/hybi/echo");
log("PASS did create WebSocket.");
} catch(e) {
log("FAIL did not create WebSocket.");
}
</script>
</body>
</html>