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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/scroll-fixed-reflected-layer.html

Issue 1992303002: Test pixel results for repaint tests changing scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/default.css"></style> 3 <link rel="stylesheet" href="resources/default.css"></style>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsTextWithPixelResults(); 7 testRunner.dumpAsTextWithPixelResults();
8 8
9 window.onload = function() { 9 window.onload = function() {
10 window.scrollTo(100, 180); 10 window.scrollTo(100, 180);
11 runRepaintTest(); 11 runRepaintAndPixelTest();
12 }; 12 };
13 13
14 function repaintTest() 14 function repaintTest()
15 { 15 {
16 document.getElementById("hideMe").style.zIndex = "-5"; 16 document.getElementById("hideMe").style.zIndex = "-5";
17 } 17 }
18 </script> 18 </script>
19 </head> 19 </head>
20 <body style="height:2000px;"> 20 <body style="height:2000px;">
21 <!-- You should see 1 green rectangle rotated in the output and no red. --> 21 <!-- You should see 1 green rectangle rotated in the output and no red. -->
22 <div style="height: 50px; top: 100px; left: 250px;" class="reflected fixed"> 22 <div style="height: 50px; top: 100px; left: 250px;" class="reflected fixed">
23 <div class="absolute green reflected" style="height: 50px;"></div> 23 <div class="absolute green reflected" style="height: 50px;"></div>
24 <div id="hideMe" class="absolute red" style="top: 0px; left: 0px;"></div > 24 <div id="hideMe" class="absolute red" style="top: 0px; left: 0px;"></div >
25 </div> 25 </div>
26 <!-- Make sure we are scrolled --> 26 <!-- Make sure we are scrolled -->
27 <div style="top: 0px; left: 0px;" class="absolute red"></div> 27 <div style="top: 0px; left: 0px;" class="absolute red"></div>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698