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 that WebSocket opened in iframe is closed when the iframe is u
nloaded even if the WebSocket is referred by the parent frame."); | 10 description("Test that WebSocket opened in iframe is closed when the iframe is u
nloaded even if the WebSocket is referred by the parent frame."); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 document.iframeReady = function() | 43 document.iframeReady = function() |
44 { | 44 { |
45 shouldBeNonNull("document.childWebSocket"); | 45 shouldBeNonNull("document.childWebSocket"); |
46 debug("PASS 'socket1' is sent to the server. unload the iframe. expect recei
ving 'socket1' on ws..."); | 46 debug("PASS 'socket1' is sent to the server. unload the iframe. expect recei
ving 'socket1' on ws..."); |
47 document.body.removeChild(frameDiv); | 47 document.body.removeChild(frameDiv); |
48 }; | 48 }; |
49 | 49 |
50 </script> | 50 </script> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |