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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/repaint/should-not-clip-composited-overflow-scrolling-layer.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 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 if (window.internals) 4 if (window.internals)
5 internals.settings.setPreferCompositingToLCDTextEnabled(true); 5 internals.settings.setPreferCompositingToLCDTextEnabled(true);
6 function repaintTest() { 6 function repaintTest() {
7 document.getElementById('content').style.backgroundColor = 'green'; 7 document.getElementById('content').style.backgroundColor = 'green';
8 var container = document.getElementById('container'); 8 var container = document.getElementById('container');
9 container.scrollLeft = 2000; 9 container.scrollLeft = 2000;
10 container.scrollTop = 2000; 10 container.scrollTop = 2000;
11 } 11 }
12 window.onload = runRepaintTest; 12 window.onload = runRepaintAndPixelTest;
13 </script> 13 </script>
14 <style> 14 <style>
15 #container { 15 #container {
16 width: 500px; 16 width: 500px;
17 height: 500px; 17 height: 500px;
18 overflow: scroll; 18 overflow: scroll;
19 } 19 }
20 #content { 20 #content {
21 width: 5000px; 21 width: 5000px;
22 height: 5000px; 22 height: 5000px;
23 background-color: red; 23 background-color: red;
24 } 24 }
25 </style> 25 </style>
26 <div id="container"> 26 <div id="container">
27 <div id="content"> 27 <div id="content">
28 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipp ed, 28 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipp ed,
29 and there is no red when the scrolling container is scrolled.<br> 29 and there is no red when the scrolling container is scrolled.<br>
30 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text 30 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text
31 on non-high-dpi machines to enable composited scrolling. 31 on non-high-dpi machines to enable composited scrolling.
32 </div> 32 </div>
33 </div> 33 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698