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

Side by Side Diff: LayoutTests/fast/repaint/scroll-fixed-layer-with-no-visible-content.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 2 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 <html> 1 <html>
2 <head> 2 <head>
3 <title></title> 3 <title></title>
4 <link rel="stylesheet" href="resources/default.css"></style> 4 <link rel="stylesheet" href="resources/default.css"></style>
5 <script src="resources/repaint.js" type="text/javascript"></script> 5 <script src="resources/repaint.js" type="text/javascript"></script>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(true); 8 testRunner.dumpAsTextWithPixelResults();
9 9
10 function repaintTest() 10 function repaintTest()
11 { 11 {
12 var moveMeElement = document.getElementById('moveMe'); 12 var moveMeElement = document.getElementById('moveMe');
13 moveMeElement.style.visibility = "visible"; 13 moveMeElement.style.visibility = "visible";
14 moveMeElement.scrollTop = 100; 14 moveMeElement.scrollTop = 100;
15 moveMeElement.scrollLeft = 150; 15 moveMeElement.scrollLeft = 150;
16 } 16 }
17 </script> 17 </script>
18 </head> 18 </head>
19 <body style="height:2000px;" onload="runRepaintTest()"> 19 <body style="height:2000px;" onload="runRepaintTest()">
20 <!-- You should see 1 green rectangle in the output and no red. --> 20 <!-- You should see 1 green rectangle in the output and no red. -->
21 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class=" fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></di v></div> 21 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class=" fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></di v></div>
22 <!-- Make sure we are scrolled --> 22 <!-- Make sure we are scrolled -->
23 <div style="top: 0px; left: 0px;" class="absolute red"></div> 23 <div style="top: 0px; left: 0px;" class="absolute red"></div>
24 <script> 24 <script>
25 window.scrollTo(1000, 1000); 25 window.scrollTo(1000, 1000);
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698