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

Side by Side Diff: LayoutTests/compositing/masks/layer-mask-placement.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 .box { 5 .box {
6 position: absolute; 6 position: absolute;
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 margin: 10px; 9 margin: 10px;
10 background-color: green; 10 background-color: green;
(...skipping 11 matching lines...) Expand all
22 .indicator { 22 .indicator {
23 background-color: red; 23 background-color: red;
24 } 24 }
25 25
26 .outlined { 26 .outlined {
27 outline: 40px solid transparent; 27 outline: 40px solid transparent;
28 } 28 }
29 </style> 29 </style>
30 <script> 30 <script>
31 if (window.testRunner) 31 if (window.testRunner)
32 testRunner.dumpAsText(true); 32 testRunner.dumpAsTextWithPixelResults();
33 33
34 function drawMask() 34 function drawMask()
35 { 35 {
36 var canvasWidth = 100; 36 var canvasWidth = 100;
37 var canvasHeight = 100; 37 var canvasHeight = 100;
38 var ctx = document.getCSSCanvasContext('2d', 'viewport-mask', canvasWidth, canvasHeight) 38 var ctx = document.getCSSCanvasContext('2d', 'viewport-mask', canvasWidth, canvasHeight)
39 ctx.fillStyle = "rgba(0, 0, 0, 1)"; 39 ctx.fillStyle = "rgba(0, 0, 0, 1)";
40 ctx.fillRect(0, 0, canvasWidth, canvasHeight); 40 ctx.fillRect(0, 0, canvasWidth, canvasHeight);
41 } 41 }
42 42
43 window.addEventListener('load', drawMask, false); 43 window.addEventListener('load', drawMask, false);
44 </script> 44 </script>
45 </head> 45 </head>
46 <body> 46 <body>
47 <!-- You should see two green boxes side by side, and no red. --> 47 <!-- You should see two green boxes side by side, and no red. -->
48 <div class="indicator box" style="left: 10px;"></div> 48 <div class="indicator box" style="left: 10px;"></div>
49 <div class="indicator box" style="left: 120px;"></div> 49 <div class="indicator box" style="left: 120px;"></div>
50 50
51 <div class="test box" style="left: 10px;"></div> 51 <div class="test box" style="left: 10px;"></div>
52 <div class="composited test box" style="left: 120px"></div> 52 <div class="composited test box" style="left: 120px"></div>
53 53
54 <div class="outlined"></div> 54 <div class="outlined"></div>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/layout-width-change.html ('k') | LayoutTests/compositing/nested-direct-image-compositing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698