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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/fixed-scroll-simple.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 fast/repaint/fixed-scroll-simple.html -->
1 <html> 2 <html>
2 <head> 3 <head>
3 <link rel="stylesheet" href="resources/default.css"> 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
4 <script src="resources/text-based-repaint.js"></script> 5 <script src="resources/paint-invalidation-test.js"></script>
5 <script> 6 <script>
6 if (window.testRunner) 7 if (window.testRunner)
7 testRunner.dumpAsTextWithPixelResults(); 8 testRunner.dumpAsTextWithPixelResults();
8 9
9 function repaintTest() 10 window.expectedPaintInvalidationObjects = [
11 "LayoutBlockFlow (positioned) DIV class='green'",
12 ];
13 function paintInvalidationTest()
10 { 14 {
11 window.scrollTo(0, 100); 15 window.scrollTo(0, 100);
12 } 16 }
13 </script> 17 </script>
14 </head> 18 </head>
15 <body style="height:2000px;" onload="runRepaintTest()"> 19 <body style="height:2000px;" onload="runPaintInvalidationTest()">
16 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing --> 20 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing -->
17 <!-- You should see no red on this page. --> 21 <!-- You should see no red on this page. -->
18 <div style="position: absolute; top: 200px;" class="red"></div> 22 <div style="position: absolute; top: 200px;" class="red"></div>
19 <div style="position: fixed; top: 100px;" class="green"></div> 23 <div style="position: fixed; top: 100px;" class="green"></div>
20 </body> 24 </body>
21 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698