OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test-pre.js"></script> | 4 <script src="/js-test-resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 description("Web Socket send test"); | 10 description("WebSocket send test"); |
11 | 11 |
12 window.jsTestIsAsync = true; | 12 window.jsTestIsAsync = true; |
13 | 13 |
14 function endTest() | 14 function endTest() |
15 { | 15 { |
16 clearTimeout(timeoutID); | 16 clearTimeout(timeoutID); |
17 finishJSTest(); | 17 finishJSTest(); |
18 } | 18 } |
19 | 19 |
20 var ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/send"); | 20 var ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/send"); |
(...skipping 26 matching lines...) Expand all Loading... |
47 testFailed("Timed out in state: " + ws.readyState); | 47 testFailed("Timed out in state: " + ws.readyState); |
48 endTest(); | 48 endTest(); |
49 } | 49 } |
50 | 50 |
51 var timeoutID = setTimeout(timeOutCallback, 3000); | 51 var timeoutID = setTimeout(timeOutCallback, 3000); |
52 | 52 |
53 </script> | 53 </script> |
54 <script src="/js-test-resources/js-test-post.js"></script> | 54 <script src="/js-test-resources/js-test-post.js"></script> |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |