| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <!-- This is a regression test for http://crbug.com/305904 --> | 3 <!-- This is a regression test for http://crbug.com/305904 --> |
| 4 <head> | 4 <head> |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
| 9 testRunner.useUnfortunateSynchronousResizeMode(); | 9 testRunner.useUnfortunateSynchronousResizeMode(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 window.onload = function() { | 12 window.onload = function() { |
| 13 document.body.offsetTop; | 13 document.body.offsetTop; |
| 14 b.style.display = "inline-block"; | 14 b.style.display = "inline-block"; |
| 15 | 15 |
| 16 document.body.offsetTop; | 16 document.body.offsetTop; |
| 17 a.removeChild(c); | 17 a.removeChild(c); |
| 18 | 18 |
| 19 document.body.offsetTop; | 19 document.body.offsetTop; |
| 20 window.resizeTo(42); | 20 window.resizeTo(42, window.outerHeight); |
| 21 | 21 |
| 22 document.getElementById("results").innerText = "Test passes if no crash.
" | 22 document.getElementById("results").innerText = "Test passes if no crash.
" |
| 23 if (window.testRunner) { | 23 if (window.testRunner) { |
| 24 testRunner.notifyDone(); | 24 testRunner.notifyDone(); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 </head> | 28 </head> |
| 29 <div style="width: 0px;">foo<span id="a"> | 29 <div style="width: 0px;">foo<span id="a"> |
| 30 <span id="b"></span><span>bar</span><span id="c"></span> | 30 <span id="b"></span><span>bar</span><span id="c"></span> |
| 31 </span> | 31 </span> |
| 32 <span style="display:inline-block;"></span> | 32 <span style="display:inline-block;"></span> |
| 33 </div> | 33 </div> |
| 34 <div><pre id="results"></pre></div> | 34 <div><pre id="results"></pre></div> |
| 35 </html> | 35 </html> |
| OLD | NEW |