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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/scroll-fixed-layer-out-of-view.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/scroll-fixed-layer-out-of-view.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 5 <script src="resources/paint-invalidation-test.js"></script>
5 <script type="text/javascript"> 6 <script type="text/javascript">
6 if (window.internals) 7 if (window.internals)
7 internals.settings.setPreferCompositingToLCDTextEnabled(true); 8 internals.settings.setPreferCompositingToLCDTextEnabled(true);
8 9
9 function repaintTest() 10 window.expectedPaintInvalidationObjects = [
11 ];
12 function paintInvalidationTest()
10 { 13 {
11 window.scrollTo(0, 1000); 14 window.scrollTo(0, 1000);
12 window.scrollTo(0, 100); 15 window.scrollTo(0, 100);
13 } 16 }
14 </script> 17 </script>
15 </head> 18 </head>
16 <body style="height:2000px" onload="runRepaintTest()"> 19 <body style="height:2000px" onload="runPaintInvalidationTest()">
17 <div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div> 20 <div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div>
18 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div> 21 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div>
19 There should be no repaints here: 22 There should be no repaints here:
20 </body> 23 </body>
21 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698