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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/fixed-after-scroll.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-after-scroll.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 testRunner.dumpAsTextWithPixelResults();
8
9 window.onload = function() { 7 window.onload = function() {
10 window.scrollTo(0, 500); 8 window.scrollTo(0, 500);
11 runRepaintTest(); 9 runPaintInvalidationTest();
12 }; 10 };
13 11
14 function repaintTest() 12 window.expectedPaintInvalidationObjects = [
13 "LayoutBlockFlow (positioned) DIV id='t' class='green absolute'",
14 "LayoutBlockFlow (positioned) DIV id='t' class='green absolute'",
15 ];
16 function paintInvalidationTest()
15 { 17 {
16 document.getElementById('t').style.position = "fixed"; 18 document.getElementById('t').style.position = "fixed";
17 } 19 }
18 </script> 20 </script>
19 </head> 21 </head>
20 22
21 <body style="height:2000px;"> 23 <body style="height:2000px;">
22 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing --> 24 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing -->
23 <!-- You should see no red on this page. --> 25 <!-- You should see no red on this page. -->
24 <div style="top: 200px;" class="red fixed"></div> 26 <div style="top: 200px;" class="red fixed"></div>
25 <div id="t" style="top: 200px;" class="green absolute"></div> 27 <div id="t" style="top: 200px;" class="green absolute"></div>
26 </body> 28 </body>
27 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698