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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.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 <style> 2 <style>
3 /* To ensure full viewport repaint when viewport is resized. */ 3 /* To ensure full viewport repaint when viewport is resized. */
4 body { 4 body {
5 background-image: linear-gradient(red, blue); 5 background-image: linear-gradient(red, blue);
6 background-attachment: fixed; 6 background-attachment: fixed;
7 margin: 0; 7 margin: 0;
8 } 8 }
9 #container { 9 #container {
10 width: 200px; 10 width: 200px;
(...skipping 14 matching lines...) Expand all
25 function repaintTest() { 25 function repaintTest() {
26 // Invalidation of horizontal scrollbar should be tracked. 26 // Invalidation of horizontal scrollbar should be tracked.
27 document.getElementById('child').style.width = '2000px'; 27 document.getElementById('child').style.width = '2000px';
28 } 28 }
29 window.onload = function() { 29 window.onload = function() {
30 // Trigger a full viewport repaint to test if scrollbar damages are cleared 30 // Trigger a full viewport repaint to test if scrollbar damages are cleared
31 // even if we shortcut children invalidations. 31 // even if we shortcut children invalidations.
32 window.resizeTo(1000, 600); 32 window.resizeTo(1000, 600);
33 // Invalidation of vertical scrollbar before the repaint test should not be tracked during repaintTest(). 33 // Invalidation of vertical scrollbar before the repaint test should not be tracked during repaintTest().
34 document.getElementById('child').style.height = '2000px'; 34 document.getElementById('child').style.height = '2000px';
35 runRepaintTest(); 35 runRepaintAndPixelTest();
36 }; 36 };
37 </script> 37 </script>
38 <div style="height: 50px"> 38 <div style="height: 50px">
39 Tests if scrollbar damage flag is cleared during a full viewport invalidation. 39 Tests if scrollbar damage flag is cleared during a full viewport invalidation.
40 Passes if the result repaint rects contain the horizontal scrollbar but not the vertical scrollbar. 40 Passes if the result repaint rects contain the horizontal scrollbar but not the vertical scrollbar.
41 </div> 41 </div>
42 <div id="container"> 42 <div id="container">
43 <div id="child"></div> 43 <div id="child"></div>
44 </div> 44 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698