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..3cadd15e68cddf67241481e2aac7ead55b8c1a94 |
--- /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('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?
|
+} |
+ |
+</script> |
+<body onload="start()"> |
+<pre id="log"></pre> |
+</body> |
+</html> |