blob: a165449822a3140229aa5c8160a5716d24ac2fce [file] [log] [blame]
mitz@apple.com8a089a42009-03-01 19:02:08 +00001<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.orgada3c202012-06-20 03:28:42 +000019 if (window.testRunner) {
20 testRunner.notifyDone();
mihaip@chromium.org5ed30ae2011-01-11 22:47:10 +000021 }
mitz@apple.com8a089a42009-03-01 19:02:08 +000022 }
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.orgada3c202012-06-20 03:28:42 +000033 if (window.testRunner) {
34 testRunner.dumpAsText();
35 testRunner.waitUntilDone();
mihaip@chromium.org5ed30ae2011-01-11 22:47:10 +000036 }
mitz@apple.com8a089a42009-03-01 19:02:08 +000037 test();
38</script>