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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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",
23 "_blank");
24 window.childWindow.addEventListener("load", "log('Child window loaded.')",
25 false);
26 }
27
28 </script>
29 <body onload="start()">
30 <pre id="log"></pre>
31 </body>
32 </html>
OLDNEW
« 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