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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/fixed-child-move-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-child-move-after-scroll.html -->
1 <html> 2 <html>
2 <head> 3 <head>
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
4 <script src="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 function scrollAndRepaint() 7 function scrollAndRepaint()
7 { 8 {
8 scrollBy(0, 200); 9 scrollBy(0, 200);
9 runRepaintTest(); 10 runPaintInvalidationTest();
10 } 11 }
11 12
12 function repaintTest() 13 window.expectedPaintInvalidationObjects = [
14 "LayoutBlockFlow (positioned) DIV id='toMove'",
15 ];
16 function paintInvalidationTest()
13 { 17 {
14 document.getElementById('toMove').style.left = "150px"; 18 document.getElementById('toMove').style.left = "150px";
15 document.getElementById('toMove').style.backgroundColor = "green"; 19 document.getElementById('toMove').style.backgroundColor = "green";
16 } 20 }
17 </script> 21 </script>
18 </head> 22 </head>
19 <body onload="scrollAndRepaint()" style="height: 3000px;"> 23 <body onload="scrollAndRepaint()" style="height: 3000px;">
20 <div style="position: fixed: top: 0; left: 0;"> 24 <div style="position: fixed: top: 0; left: 0;">
21 <p style="position: absolute; top: 210px">You should see a yellow rect on the left, and a green one on the right. No red pixels.</p> 25 <p style="position: absolute; top: 210px">You should see a yellow rect on the left, and a green one on the right. No red pixels.</p>
22 <div id="toMove" style="width: 100px; height: 100px; background-color: red ; position: fixed; top: 70px; left: 10px;"></div> 26 <div id="toMove" style="width: 100px; height: 100px; background-color: red ; position: fixed; top: 70px; left: 10px;"></div>
23 <div style="width: 100px; height: 100px; background-color: yellow; positio n: absolute; top: 270px; left: 10px; z-index: -5;"></div> 27 <div style="width: 100px; height: 100px; background-color: yellow; positio n: absolute; top: 270px; left: 10px; z-index: -5;"></div>
24 </div> 28 </div>
25 </body> 29 </body>
26 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698