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

Side by Side Diff: content/test/data/frame_tree/top.html

Issue 10827078: Support frame tree propagation between renderers in the same browsing instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved away from hardcoded strings and no static cast needed for tests. Created 8 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 <head>
3 <script>
4 window.name = "foo";
5
6 function simulateClick(target) {
7 var evt = document.createEvent("MouseEvents");
8 evt.initMouseEvent("click", true, true, window,
9 0, 0, 0, 0, 0, false, false,
10 false, false, 0, null);
11
12 return target.dispatchEvent(evt);
13 }
14
15 function openWindow(url) {
16 window.open(url);
17 return true;
18 }
19
20 function removeFrame() {
21 var frame = document.getElementById('1-2-id');
22 frame.parentNode.removeChild(frame);
23 return true;
24 }
25
26 function addFrame() {
27 var frame = document.createElement('iframe');
28 frame.setAttribute('src', '1-2.html');
29 document.body.appendChild(frame);
30 setInterval(function() {
31 document.title = "added";
32 }, 1);
33 return true;
34 }
35 </script>
36 </head>
37 <body>
38
39 Top frame.
40 <br>
41 <iframe src="1-1.html" name="1-1-name"></iframe>
42 <br>
43 <iframe src="1-2.html" id="1-2-id" name="1-2-name"></iframe>
44 <br>
45 <iframe src="1-3.html" id="1-3-id"></iframe>
46 <br>
47
48 </html>
49 </body>
50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698