Chromium Code Reviews| 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 aborts the connection when it receives an un expected encoding length frame."); | 10 description("Test whether WebSocket aborts the connection when it receives an un expected encoding length frame."); |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 ws.onclose = function(event) | 36 ws.onclose = function(event) |
| 37 { | 37 { |
| 38 debug("onclose() was called."); | 38 debug("onclose() was called."); |
| 39 closeEvent = event; | 39 closeEvent = event; |
| 40 shouldBeFalse("closeEvent.wasClean"); | 40 shouldBeFalse("closeEvent.wasClean"); |
| 41 if (curTest == totalTestSize - 1) | 41 if (curTest == totalTestSize - 1) |
| 42 finishJSTest(); | 42 finishJSTest(); |
| 43 else | 43 else |
| 44 doTest(curTest + 1); | 44 doTest(curTest + 1); |
| 45 }; | 45 }; |
| 46 | |
| 47 ws.onerror = function(errorEvent) | |
| 48 { | |
| 49 debug("onerror() was called."); | |
|
tyoshino (SeeGerritForStatus)
2015/01/13 05:31:52
Let's use testPassed, and remove ".".
Paritosh Kumar
2015/01/13 10:20:29
Done.
| |
| 50 }; | |
| 46 } | 51 } |
| 47 | 52 |
| 48 doTest(0); | 53 doTest(0); |
| 49 | 54 |
| 50 </script> | 55 </script> |
| 51 </body> | 56 </body> |
| 52 </html> | 57 </html> |
| OLD | NEW |