blob: a9e51f85ed3bf528dd82fdba02fb1da60038910b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../../js-test-resources/js-test-pre.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script type="text/javascript">
description("Make sure WebSocket doesn't crash with bad handshake message.");
window.jsTestIsAsync = true;
var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hybi/bad-handshake-crash");
ws.onopen = function () {
debug("WebSocket is open");
};
ws.onclose = function () {
debug("WebSocket is closed");
finishJSTest();
};
</script>
<script src="../../../../js-test-resources/js-test-post.js"></script>
</body>
</html>