JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / hixie76 / long-invalid-header.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../../js-test-resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description("Make sure WebSocket gives errors on long invalid upgrade header.");
11
12 window.jsTestIsAsync = true;
13
14 function finish() {
15     clearTimeout(timeoutID);
16     finishJSTest();
17 }
18
19 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hixie76/long-invalid-header");
20 ws.onopen = function () {
21     debug("WebSocket is open");
22 };
23 ws.onclose = function () {
24     debug("WebSocket is closed");
25     finish();
26 };
27 var timeoutID = setTimeout("finish()", 2000);
28
29 var successfullyParsed = true;
30 </script>
31 <script src="../../../../js-test-resources/js-test-post.js"></script>
32 </body>
33 </html>