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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/should-not-clip-composited-overflow-scrolling-layer.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on compositing/repaint/should-not-clip-composited-overflow-scrolling- layer.html -->
1 <!DOCTYPE HTML> 2 <!DOCTYPE HTML>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
3 <script> 4 <script>
4 if (window.internals) 5 if (window.internals)
5 internals.settings.setPreferCompositingToLCDTextEnabled(true); 6 internals.settings.setPreferCompositingToLCDTextEnabled(true);
6 function repaintTest() { 7 window.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow DIV id='content'",
9 "LayoutBlockFlow DIV id='content'",
10 "##ALL##",
11 "##ALL##",
12 ];
13 function paintInvalidationTest() {
7 document.getElementById('content').style.backgroundColor = 'green'; 14 document.getElementById('content').style.backgroundColor = 'green';
8 var container = document.getElementById('container'); 15 var container = document.getElementById('container');
9 container.scrollLeft = 2000; 16 container.scrollLeft = 2000;
10 container.scrollTop = 2000; 17 container.scrollTop = 2000;
11 } 18 }
12 window.onload = runRepaintTest; 19 window.onload = runPaintInvalidationTest;
13 </script> 20 </script>
14 <style> 21 <style>
15 #container { 22 #container {
16 width: 500px; 23 width: 500px;
17 height: 500px; 24 height: 500px;
18 overflow: scroll; 25 overflow: scroll;
19 } 26 }
20 #content { 27 #content {
21 width: 5000px; 28 width: 5000px;
22 height: 5000px; 29 height: 5000px;
23 background-color: red; 30 background-color: red;
24 } 31 }
25 </style> 32 </style>
26 <div id="container"> 33 <div id="container">
27 <div id="content"> 34 <div id="content">
28 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipp ed, 35 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> 36 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 37 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text
31 on non-high-dpi machines to enable composited scrolling. 38 on non-high-dpi machines to enable composited scrolling.
32 </div> 39 </div>
33 </div> 40 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698