| 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..59fba877c3820f78ac0026444315ac54877e3d2e
|
| --- /dev/null
|
| +++ b/chrome/test/data/magic_iframe/iframe-reparenting-close-window.html
|
| @@ -0,0 +1,32 @@
|
| +<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>
|
|
|