7a93250e9c97be56b9e72c4ccdd6af0b812bca77
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / bad-handshake-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../js-test-resources/js-test-style.css">
5 <script src="../../../js-test-resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <div id="description"></div>
9 <div id="console"></div>
10 <script type="text/javascript">
11 description("Make sure WebSocket doesn't crash with bad handshake message.");
12
13 window.jsTestIsAsync = true;
14
15 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/bad-handshake-crash");
16 ws.onopen = function () {
17     debug("WebSocket is open");
18 };
19 ws.onclose = function () {
20     debug("WebSocket is closed");
21     finishJSTest();
22 };
23
24 var successfullyParsed = true;
25 </script>
26 <script src="../../../js-test-resources/js-test-post.js"></script>
27 </body>
28 </html>