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

Side by Side Diff: LayoutTests/compositing/overflow/updating-scrolling-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, 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 2
3 <!-- 3 <!--
4 This test checks that the contents of accelerated scrolling layers are properly 4 This test checks that the contents of accelerated scrolling layers are properly
5 updated also outside the current overflow clip. See 5 updated also outside the current overflow clip. See
6 https://bugs.webkit.org/show_bug.cgi?id=100524. 6 https://bugs.webkit.org/show_bug.cgi?id=100524.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
(...skipping 16 matching lines...) Expand all
27 </style> 27 </style>
28 <script type="text/javascript"> 28 <script type="text/javascript">
29 if (window.internals) 29 if (window.internals)
30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn abled(true); 30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn abled(true);
31 31
32 window.addEventListener('load', function() { 32 window.addEventListener('load', function() {
33 if (!window.testRunner || !window.internals) { 33 if (!window.testRunner || !window.internals) {
34 alert('This test requires testRunner to run!'); 34 alert('This test requires testRunner to run!');
35 return; 35 return;
36 } 36 }
37 testRunner.dumpAsText(false); 37 testRunner.dumpAsText();
38 38
39 var scroller = document.getElementById('scroller'); 39 var scroller = document.getElementById('scroller');
40 var indicator = document.getElementById('indicator'); 40 var indicator = document.getElementById('indicator');
41 41
42 // Make sure the scrolling content is painted before we start. 42 // Make sure the scrolling content is painted before we start.
43 scroller.offsetTop; 43 scroller.offsetTop;
44 44
45 // Scroll all the way to the bottom and change the color of the 45 // Scroll all the way to the bottom and change the color of the
46 // indicator (which is now outside the overflow clip). 46 // indicator (which is now outside the overflow clip).
47 scroller.scrollTop = 1000; 47 scroller.scrollTop = 1000;
(...skipping 10 matching lines...) Expand all
58 </script> 58 </script>
59 </head> 59 </head>
60 <body> 60 <body>
61 <div id="scroller"> 61 <div id="scroller">
62 <div id="indicator"></div> 62 <div id="indicator"></div>
63 <div id="content"></div> 63 <div id="content"></div>
64 </div> 64 </div>
65 <pre id="layerTree">This text will be replaced with the layer tree.</pre> 65 <pre id="layerTree">This text will be replaced with the layer tree.</pre>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698