Index: chrome/test/data/magic_iframe/iframe-reparenting-close-window.html |
diff --git a/chrome/test/data/magic_iframe/iframe-reparenting-close-window.html b/chrome/test/data/magic_iframe/iframe-reparenting-close-window.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f96da6c05dbb6b39b69d8a4cb638d00f831c9735 |
--- /dev/null |
+++ b/chrome/test/data/magic_iframe/iframe-reparenting-close-window.html |
@@ -0,0 +1,30 @@ |
+<html> |
+<script> |
+window.log = function(message) |
+{ |
+ document.getElementById("log").innerText += message + "\n"; |
+} |
+ |
+window.getLog = function() |
+{ |
+ return document.getElementById("log").innerText; |
+} |
+ |
+window.finish = function() |
+{ |
+ log("DONE"); |
+ // This navigation terminates the wait condition in the test code. |
+ window.location.href = window.location.href + "#done"; |
+} |
+ |
+function start() |
+{ |
+ window.childWindow = window.open("iframe-reparenting-close-window-child.html", "_blank"); |
+ window.childWindow.addEventListener("load", "log('Child window loaded.')", false); |
+} |
+ |
+</script> |
+<body onload="start()"> |
+<pre id="log"></pre> |
+</body> |
+</html> |