| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.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 WebSocket fires error and close event when handshake is not
received at all."); | 10 description("Test if WebSocket fires error and close event when handshake is not
received at all."); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ws.onclose = function(evt) { | 21 ws.onclose = function(evt) { |
| 22 testPassed("close event"); | 22 testPassed("close event"); |
| 23 wasClean = evt.wasClean; | 23 wasClean = evt.wasClean; |
| 24 shouldBeFalse("wasClean"); | 24 shouldBeFalse("wasClean"); |
| 25 finishJSTest(); | 25 finishJSTest(); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 </script> | 28 </script> |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |