[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / test / data / frame_tree / top.html
blob8323189e0aafd693debc79757c93df4841755ecc
1 <html>
2 <head>
3 <script>
4 function simulateClick(target) {
5 var evt = document.createEvent("MouseEvents");
6 evt.initMouseEvent("click", true, true, window,
7 0, 0, 0, 0, 0, false, false,
8 false, false, 0, null);
10 return target.dispatchEvent(evt);
13 function openWindow(url) {
14 window.open(url);
15 return true;
18 function removeFrame() {
19 var frame = document.getElementById('1-2-id');
20 frame.parentNode.removeChild(frame);
21 return true;
24 function addFrame() {
25 var frame = document.createElement('iframe');
26 frame.setAttribute('src', '1-2.html');
27 document.body.appendChild(frame);
28 return true;
30 </script>
31 </head>
32 <body>
34 Top frame.
35 <br>
36 <iframe src="1-1.html" name="1-1-name"></iframe>
37 <br>
38 <iframe src="1-2.html" id="1-2-id" name="1-2-name"></iframe>
39 <br>
40 <iframe src="1-3.html" id="1-3-id"></iframe>
41 <br>
43 </html>
44 </body>
45 </html>