| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <script> | 3 <script> |
| 4 function test() { | 4 function test() { |
| 5 // Increase the size of the container so the iframe becomes visible. | 5 // Increase the size of the container so the iframe becomes visible. |
| 6 document.getElementById("container").style.height = "400px"; | 6 document.getElementById("container").style.height = "400px"; |
| 7 setTimeout(done, 10); | 7 setTimeout(done, 10); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function done() { | 10 function done() { |
| 11 if (testRunner) { | 11 if (testRunner) { |
| 12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
| 13 testRunner.notifyDone(); | 13 testRunner.notifyDone(); |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 function runTest() { | 17 function runTest() { |
| 18 if (testRunner) | 18 if (testRunner) |
| 19 testRunner.waitUntilDone(); | 19 testRunner.waitUntilDone(); |
| 20 setTimeout(test, 10); | 20 setTimeout(test, 10); |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 <body onload="runTest()"> | 23 <body onload="runTest()"> |
| 24 | 24 |
| 25 <div id = "container" style="overflow: hidden; width:100px; height:100px"> | 25 <div id = "container" style="overflow: hidden; width:100px; height:100px"> |
| 26 <iframe id='subframe' src='resources/plugin-clip-subframe-iframe.html' width=500
height=500 style="margin-top:200px"></iframe> | 26 <iframe id='subframe' src='resources/plugin-clip-subframe-iframe.html' width=500
height=500 style="margin-top:200px"></iframe> |
| 27 </div> | 27 </div> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |