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> | 9 <script> |
10 description("Test whether WebSocket rejects control frames longer than 125 bytes
."); | 10 description("Test whether WebSocket rejects control frames longer than 125 bytes
."); |
(...skipping 10 matching lines...) Expand all Loading... |
21 debug("onopen() was called."); | 21 debug("onopen() was called."); |
22 }; | 22 }; |
23 | 23 |
24 ws.onclose = function(event) | 24 ws.onclose = function(event) |
25 { | 25 { |
26 closeEvent = event; | 26 closeEvent = event; |
27 shouldBeFalse("closeEvent.wasClean"); | 27 shouldBeFalse("closeEvent.wasClean"); |
28 finishJSTest(); | 28 finishJSTest(); |
29 }; | 29 }; |
30 | 30 |
| 31 ws.onerror = function(errorEvent) |
| 32 { |
| 33 testPassed("onerror() was called"); |
| 34 }; |
| 35 |
31 </script> | 36 </script> |
32 </body> | 37 </body> |
33 </html> | 38 </html> |
OLD | NEW |