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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/scrolling-without-painting-as-text.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on compositing/overflow/scrolling-without-painting.html --> 1 <!-- Based on compositing/overflow/scrolling-without-painting.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 3
4 <!-- 4 <!--
5 This test checks that accelerated scrolling layers can be scrolled without 5 This test checks that accelerated scrolling layers can be scrolled without
6 repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087. 6 repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
11 <style type="text/css"> 11 <style type="text/css">
12 #scroller { 12 #scroller {
13 overflow: scroll; 13 overflow: scroll;
14 -webkit-overflow-scrolling: touch; 14 -webkit-overflow-scrolling: touch;
15 width: 200px; 15 width: 200px;
16 height: 200px; 16 height: 200px;
17 border: solid thin blue; 17 border: solid thin blue;
18 } 18 }
19 19
20 #content { 20 #content {
21 height: 1000px; 21 height: 1000px;
22 margin-top: 25px; 22 margin-top: 25px;
23 } 23 }
24 </style> 24 </style>
25 <script src="resources/paint-invalidation-test.js"></script> 25 <script src="resources/paint-invalidation-test.js"></script>
26 <script type="text/javascript"> 26 <script type="text/javascript">
27 if (window.testRunner)
28 testRunner.dumpAsText();
27 if (window.internals) 29 if (window.internals)
28 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); 30 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
29 31
30 window.expectedPaintInvalidationObjects = [
31 ];
32 function paintInvalidationTest() { 32 function paintInvalidationTest() {
33 // Scroll down. This should not cause any more repaints to the 33 // Scroll down. This should not cause any more repaints to the
34 // scrolling contents. 34 // scrolling contents.
35 document.getElementById('scroller').scrollTop = 25; 35 document.getElementById('scroller').scrollTop = 25;
36 } 36 }
37 37
38 runPaintInvalidationTest(); 38 runPaintInvalidationTest();
39 </script> 39 </script>
40 </head> 40 </head>
41 <body> 41 <body>
42 <div id="scroller"> 42 <div id="scroller">
43 <div id="content"></div> 43 <div id="content"></div>
44 </div> 44 </div>
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698