| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head><title>window.close test</title> | |
| 3 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> | |
| 4 </script> | |
| 5 <script type="text/javascript"> | |
| 6 function close_window() { | |
| 7 if (!isRunningInChrome()) { | |
| 8 onFailure("WindowCloseTest", 1, | |
| 9 "window_close_frame.html should load in Chrome"); | |
| 10 return; | |
| 11 } | |
| 12 window.close(); | |
| 13 } | |
| 14 </script> | |
| 15 </head> | |
| 16 <body onLoad="setTimeout(close_window, 100);"> | |
| 17 <h2>Prepare close!</h2> | |
| 18 <p>Content closing the window...</p> | |
| 19 </body> | |
| 20 </html> | |
| OLD | NEW |