mitz@apple.com | 8a089a4 | 2009-03-01 19:02:08 +0000 | [diff] [blame] | 1 | <div> |
| 2 | Test for <i><a href="rdar://problem/6634768">rdar://problem/6634768</a> |
| 3 | Reproducible crash in RenderLayer::updateScrollCornerStyle() using full-page zoom at MobileMe Contacts</i>. |
| 4 | </div> |
| 5 | <div> |
| 6 | The test passed if it did not crash. |
| 7 | </div> |
| 8 | <div id="target" style=" |
| 9 | overflow: auto; |
| 10 | height: 200px; |
| 11 | width: 200px; |
| 12 | "> |
| 13 | <div style="height: 500px;"></div> |
| 14 | </div> |
| 15 | <script> |
| 16 | function scrolled(event) |
| 17 | { |
| 18 | event.target.parentNode.removeChild(event.target); |
rniwa@webkit.org | ada3c20 | 2012-06-20 03:28:42 +0000 | [diff] [blame] | 19 | if (window.testRunner) { |
| 20 | testRunner.notifyDone(); |
mihaip@chromium.org | 5ed30ae | 2011-01-11 22:47:10 +0000 | [diff] [blame] | 21 | } |
mitz@apple.com | 8a089a4 | 2009-03-01 19:02:08 +0000 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | function test() |
| 25 | { |
| 26 | var target = document.getElementById("target"); |
| 27 | target.scrollTop = 50; |
| 28 | document.body.offsetTop; |
| 29 | target.addEventListener("scroll", scrolled, false); |
| 30 | document.body.style.zoom = 2; |
| 31 | } |
| 32 | |
rniwa@webkit.org | ada3c20 | 2012-06-20 03:28:42 +0000 | [diff] [blame] | 33 | if (window.testRunner) { |
| 34 | testRunner.dumpAsText(); |
| 35 | testRunner.waitUntilDone(); |
mihaip@chromium.org | 5ed30ae | 2011-01-11 22:47:10 +0000 | [diff] [blame] | 36 | } |
mitz@apple.com | 8a089a4 | 2009-03-01 19:02:08 +0000 | [diff] [blame] | 37 | test(); |
| 38 | </script> |