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

Side by Side Diff: LayoutTests/compositing/background-color/background-color-text-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 } 10 }
11 11
12 .composited { 12 .composited {
13 -webkit-transform: translateZ(0); 13 -webkit-transform: translateZ(0);
14 } 14 }
15 </style> 15 </style>
16 <script type="text/javascript" charset="utf-8"> 16 <script type="text/javascript" charset="utf-8">
17 if (window.testRunner) { 17 if (window.testRunner) {
18 testRunner.waitUntilDone(); 18 testRunner.waitUntilDone();
19 testRunner.dumpAsText(true); 19 testRunner.dumpAsTextWithPixelResults();
20 } 20 }
21 function doTest() 21 function doTest()
22 { 22 {
23 var bg = document.getElementById("background"); 23 var bg = document.getElementById("background");
24 24
25 window.setTimeout(function() { 25 window.setTimeout(function() {
26 // Change the layer to become background only. 26 // Change the layer to become background only.
27 bg.innerHTML = ""; 27 bg.innerHTML = "";
28 if (window.testRunner) { 28 if (window.testRunner) {
29 window.setTimeout(function() { 29 window.setTimeout(function() {
30 testRunner.notifyDone(); 30 testRunner.notifyDone();
31 }, 0); 31 }, 0);
32 } 32 }
33 }, 0); 33 }, 0);
34 } 34 }
35 35
36 window.addEventListener('load', doTest, false); 36 window.addEventListener('load', doTest, false);
37 </script> 37 </script>
38 </head> 38 </head>
39 <body> 39 <body>
40 <!-- When the test is done, there should only be a green square on the page --> 40 <!-- When the test is done, there should only be a green square on the page -->
41 41
42 <!-- Start with a red image --> 42 <!-- Start with a red image -->
43 <div id="background" class="composited">Text</div> 43 <div id="background" class="composited">Text</div>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698