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

Side by Side Diff: LayoutTests/compositing/tiling/huge-layer-img.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> 4 <style>
5 #container { 5 #container {
6 width: 500px; 6 width: 500px;
7 height: 20000px; 7 height: 20000px;
8 -webkit-transform:translateZ(0); 8 -webkit-transform:translateZ(0);
9 } 9 }
10 body { 10 body {
11 overflow: hidden; 11 overflow: hidden;
12 } 12 }
13 </style> 13 </style>
14 <script type="text/javascript" charset="utf-8"> 14 <script type="text/javascript" charset="utf-8">
15 if (window.testRunner) 15 if (window.testRunner)
16 testRunner.dumpAsText(true); 16 testRunner.dumpAsTextWithPixelResults();
17 17
18 function testOnLoad() 18 function testOnLoad()
19 { 19 {
20 var canvas = document.createElement('canvas'); 20 var canvas = document.createElement('canvas');
21 var img = document.getElementById("container") 21 var img = document.getElementById("container")
22 canvas.width = img.width; 22 canvas.width = img.width;
23 canvas.height = img.height; 23 canvas.height = img.height;
24 var context = canvas.getContext('2d'); 24 var context = canvas.getContext('2d');
25 context.fillStyle = "yellow"; 25 context.fillStyle = "yellow";
26 context.fillRect(0, 0, canvas.width, canvas.height); 26 context.fillRect(0, 0, canvas.width, canvas.height);
(...skipping 11 matching lines...) Expand all
38 <body> 38 <body>
39 <!-- 39 <!--
40 The yellow box should be large enough to scroll off the bottom. 40 The yellow box should be large enough to scroll off the bottom.
41 There should be a red box within the yellow box. 41 There should be a red box within the yellow box.
42 This tests that we can support very large composited image layers. 42 This tests that we can support very large composited image layers.
43 --> 43 -->
44 <img id="container"> 44 <img id="container">
45 <pre id="layers">Layer tree appears here in DRT.</pre> 45 <pre id="layers">Layer tree appears here in DRT.</pre>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698