Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: chrome/test/data/magic_iframe/iframe-reparenting-close-window.html

Issue 7550021: Add a browsertest for magic iframe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now moved method outside of the class Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698