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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/fixed-and-absolute-position-scrolled.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-and-absolute-position-scrolled.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" type="text/javascript"></scrip t> 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script>
5 <script type="text/javascript"> 6 <script type="text/javascript">
6 if (window.testRunner) 7 if (window.testRunner)
7 testRunner.dumpAsTextWithPixelResults(); 8 testRunner.dumpAsTextWithPixelResults();
8 9
9 window.onload = function() { 10 window.onload = function() {
10 window.scrollTo(0, 500); 11 window.scrollTo(0, 500);
11 runRepaintTest(); 12 runPaintInvalidationTest();
12 } 13 }
13 14
14 function repaintTest() 15 window.expectedPaintInvalidationObjects = [
16 "LayoutView #document",
17 "LayoutBlockFlow HTML",
18 "LayoutBlockFlow DIV id='container' class='relative'",
19 "LayoutBlockFlow (positioned) DIV id='absoluteDiv' class='absolute g reen'",
20 ];
21 function paintInvalidationTest()
15 { 22 {
16 document.getElementById('container').style.position = 'static'; 23 document.getElementById('container').style.position = 'static';
17 } 24 }
18 </script> 25 </script>
19 </head> 26 </head>
20 <body style="height:2000px;"> 27 <body style="height:2000px;">
21 <!-- You should see 1 green rectangle in the output and no red. --> 28 <!-- You should see 1 green rectangle in the output and no red. -->
22 <div style="top: 200px; left: 100px;" class="fixed red"></div> 29 <div style="top: 200px; left: 100px;" class="fixed red"></div>
23 <div id="container" style="top: 5000px;" class="relative"><div id="absoluteD iv" style="top: 700px; left:100px;" class="absolute green"></div></div> 30 <div id="container" style="top: 5000px;" class="relative"><div id="absoluteD iv" style="top: 700px; left:100px;" class="absolute green"></div></div>
24 </body> 31 </body>
25 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698