OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <script> |
| 3 window.log = function(message) |
| 4 { |
| 5 document.getElementById("log").innerText += message + "\n"; |
| 6 } |
| 7 |
| 8 window.getLog = function() |
| 9 { |
| 10 return document.getElementById("log").innerText; |
| 11 } |
| 12 |
| 13 window.finish = function() |
| 14 { |
| 15 log("DONE"); |
| 16 // This navigation terminates the wait condition in the test code. |
| 17 window.location.href = window.location.href + "#done"; |
| 18 } |
| 19 |
| 20 function start() |
| 21 { |
| 22 window.childWindow = window.open("iframe-reparenting-close-window-child.html", |
| 23 "_blank"); |
| 24 window.childWindow.addEventListener("load", "log('Child window loaded.')", |
| 25 false); |
| 26 } |
| 27 |
| 28 </script> |
| 29 <body onload="start()"> |
| 30 <pre id="log"></pre> |
| 31 </body> |
| 32 </html> |
OLD | NEW |