Fix build break
[chromium-blink-merge.git] / content / test / data / frame_tree / top.html
blob37cd4462a5a5791ec3cb3da00c814506d28de7bf
1 <html>
2 <head>
3 <script>
4 window.name = "foo";
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);
12 return target.dispatchEvent(evt);
15 function openWindow(url) {
16 window.open(url);
17 return true;
20 function removeFrame() {
21 var frame = document.getElementById('1-2-id');
22 frame.parentNode.removeChild(frame);
23 return true;
26 function addFrame() {
27 var frame = document.createElement('iframe');
28 frame.setAttribute('src', '1-2.html');
29 document.body.appendChild(frame);
30 return true;
32 </script>
33 </head>
34 <body>
36 Top frame.
37 <br>
38 <iframe src="1-1.html" name="1-1-name"></iframe>
39 <br>
40 <iframe src="1-2.html" id="1-2-id" name="1-2-name"></iframe>
41 <br>
42 <iframe src="1-3.html" id="1-3-id"></iframe>
43 <br>
45 </html>
46 </body>
47 </html>