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

Side by Side Diff: LayoutTests/compositing/overflow/image-load-overflow-scrollbars.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 #overflow { 5 #overflow {
6 overflow:auto; 6 overflow:auto;
7 width:200px; 7 width:200px;
8 height:200px; 8 height:200px;
9 -webkit-transform:translateZ(0); 9 -webkit-transform:translateZ(0);
10 } 10 }
11 </style> 11 </style>
12 <script type='text/javascript'> 12 <script type='text/javascript'>
13 function doTest() { 13 function doTest() {
14 var canvas = document.createElement('canvas'); 14 var canvas = document.createElement('canvas');
15 canvas.width = 1; 15 canvas.width = 1;
16 canvas.height = 400; 16 canvas.height = 400;
17 var content = document.getElementById("content"); 17 var content = document.getElementById("content");
18 content.onload = function() { 18 content.onload = function() {
19 var overflow = document.getElementById("overflow"); 19 var overflow = document.getElementById("overflow");
20 overflow.scrollTop = 50; 20 overflow.scrollTop = 50;
21 if (window.testRunner) 21 if (window.testRunner)
22 testRunner.notifyDone(); 22 testRunner.notifyDone();
23 } 23 }
24 content.src = canvas.toDataURL(); 24 content.src = canvas.toDataURL();
25 } 25 }
26 window.addEventListener('load', doTest, false); 26 window.addEventListener('load', doTest, false);
27 27
28 if (window.testRunner) { 28 if (window.testRunner) {
29 testRunner.waitUntilDone(); 29 testRunner.waitUntilDone();
30 testRunner.dumpAsText(true); 30 testRunner.dumpAsTextWithPixelResults();
31 } 31 }
32 </script> 32 </script>
33 </head> 33 </head>
34 <body> 34 <body>
35 <!-- This test passes if a partially scrolled scrollbar appears --> 35 <!-- This test passes if a partially scrolled scrollbar appears -->
36 <div id="overflow"> 36 <div id="overflow">
37 <img id="content"> 37 <img id="content">
38 </div> 38 </div>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698