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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-scroll.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, 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css"> 4 <style type="text/css">
5 .absolute { 5 .absolute {
6 background-color: green; 6 background-color: green;
7 height: 96px; 7 height: 96px;
8 position: absolute; 8 position: absolute;
9 top: 0; 9 top: 0;
10 left: 0; 10 left: 0;
(...skipping 16 matching lines...) Expand all
27 padding-top: 24px; 27 padding-top: 24px;
28 margin: 64px 0px 1920px 0px; 28 margin: 64px 0px 1920px 0px;
29 width: 100%; 29 width: 100%;
30 height: 40px; 30 height: 40px;
31 -webkit-transform: translateZ(0); 31 -webkit-transform: translateZ(0);
32 } 32 }
33 </style> 33 </style>
34 <script src="../../fast/repaint/resources/repaint.js"></script> 34 <script src="../../fast/repaint/resources/repaint.js"></script>
35 <script type="text/javascript" charset="utf-8"> 35 <script type="text/javascript" charset="utf-8">
36 if (window.testRunner) { 36 if (window.testRunner) {
37 testRunner.dumpAsText(true); 37 testRunner.dumpAsTextWithPixelResults();
38 testRunner.waitUntilDone(); 38 testRunner.waitUntilDone();
39 } 39 }
40 40
41 function repaintTest() 41 function repaintTest()
42 { 42 {
43 window.scrollBy(0,-96); 43 window.scrollBy(0,-96);
44 if (window.testRunner) 44 if (window.testRunner)
45 testRunner.notifyDone(); 45 testRunner.notifyDone();
46 } 46 }
47 47
48 function doTest() 48 function doTest()
49 { 49 {
50 window.scrollBy(0,-2048); 50 window.scrollBy(0,-2048);
51 window.scrollBy(0,160); 51 window.scrollBy(0,160);
52 runRepaintTest(); 52 runRepaintTest();
53 } 53 }
54 window.addEventListener('load', doTest, false); 54 window.addEventListener('load', doTest, false);
55 </script> 55 </script>
56 </head> 56 </head>
57 <body> 57 <body>
58 <div class="absolute"></div> 58 <div class="absolute"></div>
59 <div class="fixed"></div> 59 <div class="fixed"></div>
60 <div class="transformed"></div> 60 <div class="transformed"></div>
61 <p> For this test to pass, you should not see a red line when scroll positio n is less or equal to 64px from the top. </p> 61 <p> For this test to pass, you should not see a red line when scroll positio n is less or equal to 64px from the top. </p>
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698