Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/table-overflow-auto-in-overflow-auto-scrolled.html

Issue 1992303002: Test pixel results for repaint tests changing scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
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", runRepaintAndPixelTest, 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: auto;" id="outerDiv"> 17 <div style="height: 300px; overflow-y: auto;" 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: auto;" id="innerDiv"> 19 <div style="height: 400px; overflow-y: auto;" id="innerDiv">
20 <table> 20 <table>
21 <tr><td style="height: 400px; width: 300px; background: red"></td></ tr> 21 <tr><td style="height: 400px; width: 300px; background: red"></td></ tr>
(...skipping 10 matching lines...) Expand all
32 32
33 // Scroll the #outerDiv until we reach the #innerDiv. 33 // Scroll the #outerDiv until we reach the #innerDiv.
34 eventSender.mouseMoveTo(50, 50); 34 eventSender.mouseMoveTo(50, 50);
35 eventSender.mouseScrollBy(0, -8); 35 eventSender.mouseScrollBy(0, -8);
36 } else { 36 } else {
37 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."); 37 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.");
38 } 38 }
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698