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 invalid permessage-deflate parameter
s."); | 10 description("Test whether WebSocket rejects invalid permessage-deflate parameter
s."); |
(...skipping 27 matching lines...) Expand all Loading... |
38 ws.onclose = function(event) | 38 ws.onclose = function(event) |
39 { | 39 { |
40 debug("onclose() was called."); | 40 debug("onclose() was called."); |
41 closeEvent = event; | 41 closeEvent = event; |
42 shouldBeFalse("closeEvent.wasClean"); | 42 shouldBeFalse("closeEvent.wasClean"); |
43 if (index === testCase.length - 1) | 43 if (index === testCase.length - 1) |
44 finishJSTest(); | 44 finishJSTest(); |
45 else | 45 else |
46 doTest(index + 1); | 46 doTest(index + 1); |
47 }; | 47 }; |
| 48 |
| 49 ws.onerror = function(errorEvent) |
| 50 { |
| 51 testPassed("onerror() was called"); |
| 52 }; |
48 } | 53 } |
49 | 54 |
50 doTest(0); | 55 doTest(0); |
51 | 56 |
52 </script> | 57 </script> |
53 </body> | 58 </body> |
54 </html> | 59 </html> |
OLD | NEW |