| 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 document.getElementsByTagName('h4')[0].innerHTML = document.domain; | 7 document.getElementsByTagName('h4')[0].innerHTML = document.domain; |
| 8 if (window.testRunner) { | 8 window.addEventListener('message', runTest); |
| 9 setTimeout(pollForTest, 1); | |
| 10 } else { | |
| 11 log("Click the link to run the test."); | |
| 12 } | |
| 13 } | |
| 14 | |
| 15 pollForTest = function() | |
| 16 { | |
| 17 if (!testRunner.globalFlag) { | |
| 18 setTimeout(pollForTest, 1); | |
| 19 return; | |
| 20 } | |
| 21 runTest(); | |
| 22 } | 9 } |
| 23 | 10 |
| 24 runTest = function() | 11 runTest = function() |
| 25 { | 12 { |
| 26 if (!window.testRunner) | 13 if (!window.testRunner) |
| 27 return; | 14 return; |
| 28 | 15 |
| 29 plg.getURL("navigation-happened.html", "toNavigate"); | 16 plg.getURL("navigation-happened.html", "toNavigate"); |
| 30 | 17 |
| 31 start = new Date(); | 18 start = new Date(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 } | 35 } |
| 49 </script> | 36 </script> |
| 50 </head> | 37 </head> |
| 51 <body> | 38 <body> |
| 52 <embed name="plg" type="application/x-webkit-test-netscape"></embed> | 39 <embed name="plg" type="application/x-webkit-test-netscape"></embed> |
| 53 <h3>Frame-with-plugin-to-navigate</h3> | 40 <h3>Frame-with-plugin-to-navigate</h3> |
| 54 <h4>DOMAIN</h4> | 41 <h4>DOMAIN</h4> |
| 55 <pre id='console'></pre> | 42 <pre id='console'></pre> |
| 56 </body> | 43 </body> |
| 57 </html> | 44 </html> |
| OLD | NEW |