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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/updating-scrolling-content.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 2
3 <!-- 3 <!--
4 This test checks that the contents of accelerated scrolling layers are properly 4 This test checks that the contents of accelerated scrolling layers are properly
5 updated also outside the current overflow clip. See 5 updated also outside the current overflow clip. See
6 https://bugs.webkit.org/show_bug.cgi?id=100524. 6 https://bugs.webkit.org/show_bug.cgi?id=100524.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
(...skipping 23 matching lines...) Expand all
34 var scroller = document.getElementById('scroller'); 34 var scroller = document.getElementById('scroller');
35 var indicator = document.getElementById('indicator'); 35 var indicator = document.getElementById('indicator');
36 36
37 // Make sure the scrolling content is painted before we start. 37 // Make sure the scrolling content is painted before we start.
38 scroller.offsetTop; 38 scroller.offsetTop;
39 39
40 // Scroll all the way to the bottom and change the color of the 40 // Scroll all the way to the bottom and change the color of the
41 // indicator (which is now outside the overflow clip). 41 // indicator (which is now outside the overflow clip).
42 scroller.scrollTop = 1000; 42 scroller.scrollTop = 1000;
43 43
44 runRepaintTest(); 44 runRepaintAndPixelTest();
45 }); 45 });
46 46
47 function repaintTest() { 47 function repaintTest() {
48 var scroller = document.getElementById('scroller'); 48 var scroller = document.getElementById('scroller');
49 var indicator = document.getElementById('indicator'); 49 var indicator = document.getElementById('indicator');
50 50
51 indicator.style.background = 'green'; 51 indicator.style.background = 'green';
52 52
53 // Scroll back up so that the updated (green) indicator is visible. 53 // Scroll back up so that the updated (green) indicator is visible.
54 scroller.scrollTop = 0; 54 scroller.scrollTop = 0;
55 } 55 }
56 </script> 56 </script>
57 </head> 57 </head>
58 <body> 58 <body>
59 <div id="scroller"> 59 <div id="scroller">
60 <div id="indicator"></div> 60 <div id="indicator"></div>
61 <div id="content"></div> 61 <div id="content"></div>
62 </div> 62 </div>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698