| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function test() | 2 function test() |
| 3 { | 3 { |
| 4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
| 5 { |
| 5 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
| 6 | 7 layoutTestController.waitUntilDone(); |
| 8 } |
| 7 document.body.offsetTop; | 9 document.body.offsetTop; |
| 8 document.getElementById("iframe").style.height = "100px"; | 10 document.getElementById("iframe").style.height = "100px"; |
| 9 } | 11 } |
| 10 </script> | 12 </script> |
| 11 <body onload="test()"> | 13 <body onload="test()"> |
| 12 <iframe id="iframe" style="height: 200px;" src="data:text/html, | 14 <iframe id="iframe" style="height: 200px;" src="data:text/html, |
| 13 <head> | 15 <head> |
| 14 <script> | 16 <script> |
| 15 function resized() | 17 function resized() |
| 16 { | 18 { |
| 17 if (window.layoutTestController) | 19 if (window.layoutTestController) |
| 20 { |
| 18 alert('PASS'); | 21 alert('PASS'); |
| 22 layoutTestController.notifyDone(); |
| 23 } |
| 19 else | 24 else |
| 20 document.body.appendChild(document.createTextNode('PASS'
)); | 25 document.body.appendChild(document.createTextNode('PASS'
)); |
| 21 } | 26 } |
| 22 </script> | 27 </script> |
| 23 </head> | 28 </head> |
| 24 <body onresize='resized()'></body> | 29 <body onresize='resized()'></body> |
| 25 "></iframe> | 30 "></iframe> |
| 26 </body> | 31 </body> |
| OLD | NEW |