OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../resources/cross-frame-access.js"></script> | 3 <script src="../resources/cross-frame-access.js"></script> |
4 <script> | 4 <script> |
5 window.onload = function() | 5 window.onload = function() |
6 { | 6 { |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 testRunner.dumpChildFramesAsText(); | 9 testRunner.dumpChildFramesAsText(); |
10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
11 testRunner.setCanOpenWindows(); | 11 testRunner.setCanOpenWindows(); |
12 testRunner.setCloseRemainingWindowsWhenComplete(true); | 12 testRunner.setCloseRemainingWindowsWhenComplete(true); |
13 } | 13 } |
| 14 window.frames[0].postMessage('run test', '*'); |
14 } | 15 } |
15 </script> | 16 </script> |
16 </head> | 17 </head> |
17 <body> | 18 <body> |
18 <pre id='console'></pre> | 19 <pre id='console'></pre> |
19 <iframe src="http://localhost:8000/security/frameNavigation/resources/frame-with
-plugin-to-navigate.html"></iframe> | 20 <iframe src="http://localhost:8000/security/frameNavigation/resources/frame-with
-plugin-to-navigate.html"></iframe> |
20 <iframe name="toNavigate" src="http://127.0.0.1:8000/security/resources/cross-fr
ame-iframe.html"></iframe> | 21 <iframe name="toNavigate" src="http://127.0.0.1:8000/security/resources/cross-fr
ame-iframe.html"></iframe> |
21 </body> | 22 </body> |
22 </html> | 23 </html> |
OLD | NEW |