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.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("Test if WebSocket is closed while handshaking and unreferenced, it
should fire close event at most once."); | 10 description("Test if WebSocket is closed while handshaking and unreferenced, it
should fire close event at most once."); |
(...skipping 11 matching lines...) Expand all Loading... |
22 var ws = new WebSocket("ws://127.0.0.1:8880/echo"); | 22 var ws = new WebSocket("ws://127.0.0.1:8880/echo"); |
23 ws.onclose = function() { | 23 ws.onclose = function() { |
24 countCloseEvent += 1; | 24 countCloseEvent += 1; |
25 }; | 25 }; |
26 ws = null; | 26 ws = null; |
27 gc(); | 27 gc(); |
28 setTimeout("endTest()", 100); | 28 setTimeout("endTest()", 100); |
29 </script> | 29 </script> |
30 </body> | 30 </body> |
31 </html> | 31 </html> |
OLD | NEW |