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 ma sked frames from server."); | 10 description("Test whether WebSocket aborts the connection when it receives an ma sked frames from server."); | 
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 testFailed("onmessage() was called. (message = \"" + message + "\")"); | 26 testFailed("onmessage() was called. (message = \"" + message + "\")"); | 
| 27 }; | 27 }; | 
| 28 | 28 | 
| 29 ws.onclose = function(event) | 29 ws.onclose = function(event) | 
| 30 { | 30 { | 
| 31 closeEvent = event; | 31 closeEvent = event; | 
| 32 shouldBeFalse("closeEvent.wasClean"); | 32 shouldBeFalse("closeEvent.wasClean"); | 
| 33 finishJSTest(); | 33 finishJSTest(); | 
| 34 }; | 34 }; | 
| 35 | 35 | 
| 36 ws.onerror = function(errorEvent) | |
| 37 { | |
| 38 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.
 
 | |
| 39 }; | |
| 40 | |
| 36 </script> | 41 </script> | 
| 37 </body> | 42 </body> | 
| 38 </html> | 43 </html> | 
| OLD | NEW |