| 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("Test if Web Socket is closed on unload"); | 10 description("Test if WebSocket is closed on unload"); |
| 11 | 11 |
| 12 window.jsTestIsAsync = true; | 12 window.jsTestIsAsync = true; |
| 13 | 13 |
| 14 var frameDiv; | 14 var frameDiv; |
| 15 var closedSocket; | 15 var closedSocket; |
| 16 var closeCode; | 16 var closeCode; |
| 17 | 17 |
| 18 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hybi/close-on-unload
"); | 18 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hybi/close-on-unload
"); |
| 19 ws.onopen = function() | 19 ws.onopen = function() |
| 20 { | 20 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 document.iframeReady = function() | 41 document.iframeReady = function() |
| 42 { | 42 { |
| 43 debug("PASS 'socket1' is sent to the server. unload the iframe. expect recei
ving 'socket1' on ws..."); | 43 debug("PASS 'socket1' is sent to the server. unload the iframe. expect recei
ving 'socket1' on ws..."); |
| 44 document.body.removeChild(frameDiv); | 44 document.body.removeChild(frameDiv); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 </script> | 47 </script> |
| 48 <script src="/js-test-resources/js-test-post.js"></script> | 48 <script src="/js-test-resources/js-test-post.js"></script> |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |