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

Side by Side Diff: LayoutTests/compositing/background-color/background-color-padding-change.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> 1 <!DOCTYPE>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 #background { 5 #background {
6 width: 200px; 6 width: 200px;
7 height: 200px; 7 height: 200px;
8 display: block; 8 display: block;
9 background-color: green; 9 background-color: green;
10 -webkit-background-clip: content; 10 -webkit-background-clip: content;
11 } 11 }
12 12
13 #content { 13 #content {
14 width: 100px; 14 width: 100px;
15 height: 100px; 15 height: 100px;
16 display: block; 16 display: block;
17 background-color: blue; 17 background-color: blue;
18 } 18 }
19 19
20 .composited { 20 .composited {
21 -webkit-transform: translateZ(0); 21 -webkit-transform: translateZ(0);
22 } 22 }
23 </style> 23 </style>
24 <script type="text/javascript" charset="utf-8"> 24 <script type="text/javascript" charset="utf-8">
25 if (window.testRunner) { 25 if (window.testRunner) {
26 testRunner.waitUntilDone(); 26 testRunner.waitUntilDone();
27 testRunner.dumpAsText(true); 27 testRunner.dumpAsTextWithPixelResults();
28 } 28 }
29 function doTest() 29 function doTest()
30 { 30 {
31 var bg = document.getElementById("background"); 31 var bg = document.getElementById("background");
32 32
33 window.setTimeout(function() { 33 window.setTimeout(function() {
34 // Change the layer to become background only. 34 // Change the layer to become background only.
35 bg.style.padding = "50px"; 35 bg.style.padding = "50px";
36 if (window.testRunner) { 36 if (window.testRunner) {
37 window.setTimeout(function() { 37 window.setTimeout(function() {
38 testRunner.notifyDone(); 38 testRunner.notifyDone();
39 }, 0); 39 }, 0);
40 } 40 }
41 }, 0); 41 }, 0);
42 } 42 }
43 43
44 window.addEventListener('load', doTest, false); 44 window.addEventListener('load', doTest, false);
45 </script> 45 </script>
46 </head> 46 </head>
47 <body> 47 <body>
48 <!-- When the test is done, there should only be a green square on the page --> 48 <!-- When the test is done, there should only be a green square on the page -->
49 <div id="background" class="composited"> 49 <div id="background" class="composited">
50 <div id="content"></div> 50 <div id="content"></div>
51 </div> 51 </div>
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698