OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/repaint.js" type="text/javascript"></script> | 4 <script src="resources/repaint.js" type="text/javascript"></script> |
5 <script> | 5 <script> |
6 function repaintTest() { | 6 function repaintTest() { |
7 // Now scroll once in the #innerDiv to the green area. | 7 // Now scroll once in the #innerDiv to the green area. |
8 if (window.eventSender) | 8 if (window.eventSender) |
9 eventSender.mouseScrollBy(0, -10); | 9 eventSender.mouseScrollBy(0, -10); |
10 } | 10 } |
11 window.addEventListener("load", runRepaintTest, false); | 11 window.addEventListener("load", runRepaintTest, false); |
12 </script> | 12 </script> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element bei
ng scrolled off page using javascript. --> | 15 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element bei
ng scrolled off page using javascript. --> |
16 <!-- For the test to pass you should not see any RED or PURPLE, only green --> | 16 <!-- For the test to pass you should not see any RED or PURPLE, only green --> |
17 <div style="height: 300px; overflow-y: scroll;" id="outerDiv"> | 17 <div style="height: 300px; overflow-y: scroll;" id="outerDiv"> |
18 <div style="height: 300px; background: purple;"></div> | 18 <div style="height: 300px; background: purple;"></div> |
19 <div style="height: 400px; overflow-y: scroll;" id="innerDiv"> | 19 <div style="height: 400px; overflow-y: scroll;" id="innerDiv"> |
20 <div style="height: 400px; width: 300px; background: red"></div> | 20 <div style="height: 400px; width: 300px; background: red"></div> |
21 <div style="height: 400px; width: 300px; background: green"></div> | 21 <div style="height: 400px; width: 300px; background: green"></div> |
22 </div> | 22 </div> |
23 </div> | 23 </div> |
24 <script> | 24 <script> |
25 if (window.eventSender) { | 25 if (window.eventSender) { |
26 testRunner.dumpAsText(true); | 26 testRunner.dumpAsTextWithPixelResults(); |
27 | 27 |
28 // Scroll the #outerDiv until we reach the #innerDiv. | 28 // Scroll the #outerDiv until we reach the #innerDiv. |
29 eventSender.mouseMoveTo(50, 50); | 29 eventSender.mouseMoveTo(50, 50); |
30 eventSender.mouseScrollBy(0, -8); | 30 eventSender.mouseScrollBy(0, -8); |
31 } else { | 31 } else { |
32 document.write("This test is better run under DumpRenderTree. To manually te
st it, continuously scroll down on the top-most element. There should be no repa
int issue."); | 32 document.write("This test is better run under DumpRenderTree. To manually te
st it, continuously scroll down on the top-most element. There should be no repa
int issue."); |
33 } | 33 } |
34 </script> | 34 </script> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
OLD | NEW |