Chromium Code Reviews| 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", "_blank"); | |
| 23 window.childWindow.addEventListener("load", "log('PASS: Child window loaded.') ", false); | |
|
Paweł Hajdan Jr.
2011/08/03 16:27:27
Does the C++ part check for this PASS in the log?
| |
| 24 } | |
| 25 | |
| 26 </script> | |
| 27 <body onload="start()"> | |
| 28 <pre id="log"></pre> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |