Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 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('Connection should fail immediately if the server returns a 404 erro r.'); | 10 description('Connection should fail immediately if the server returns a 404 erro r.'); |
| 11 | 11 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 22 ws.close(); | 22 ws.close(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 ws.onclose = function(event) | 25 ws.onclose = function(event) |
| 26 { | 26 { |
| 27 wasClean = event.wasClean; | 27 wasClean = event.wasClean; |
| 28 shouldBeFalse('wasClean'); | 28 shouldBeFalse('wasClean'); |
| 29 finishJSTest(); | 29 finishJSTest(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 ws.onerror = function(errorEvent) | |
| 33 { | |
| 34 testPassed("onerror called"); | |
|
tyoshino (SeeGerritForStatus)
2015/01/13 05:31:49
onerror() was called
Paritosh Kumar
2015/01/13 10:20:28
Done.
| |
| 35 }; | |
| 36 | |
| 32 </script> | 37 </script> |
| 33 </body> | 38 </body> |
| 34 </html> | 39 </html> |
| OLD | NEW |