OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test-pre.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 type="text/javascript"> | 9 <script type="text/javascript"> |
10 description("Checks whether unpaired surrogates in a close reason are silently c
onverted to U+FFFD and SYNTAX_ERR is not thrown."); | 10 description("Checks whether unpaired surrogates in a close reason are silently c
onverted to U+FFFD and SYNTAX_ERR is not thrown."); |
11 | 11 |
12 window.jsTestIsAsync = true; | 12 window.jsTestIsAsync = true; |
13 | 13 |
14 var ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/echo"); | 14 var ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/echo"); |
(...skipping 15 matching lines...) Expand all Loading... |
30 ws.onclose = function(event) | 30 ws.onclose = function(event) |
31 { | 31 { |
32 closeEvent = event; | 32 closeEvent = event; |
33 shouldBeTrue("closeEvent.wasClean"); | 33 shouldBeTrue("closeEvent.wasClean"); |
34 finishJSTest(); | 34 finishJSTest(); |
35 }; | 35 }; |
36 | 36 |
37 </script> | 37 </script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |