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

Side by Side Diff: LayoutTests/compositing/images/content-image-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, 2 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 <title>Image layer content change</title> 4 <title>Image layer content change</title>
5 5
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 #image { 7 #image {
8 width: 200px; 8 width: 200px;
9 height: 200px; 9 height: 200px;
10 -webkit-transform: translateZ(0); 10 -webkit-transform: translateZ(0);
11 } 11 }
12 </style> 12 </style>
13 <script type="text/javascript" charset="utf-8"> 13 <script type="text/javascript" charset="utf-8">
14 if (window.testRunner) { 14 if (window.testRunner) {
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 testRunner.dumpAsText(true); 16 testRunner.dumpAsTextWithPixelResults();
17 } 17 }
18 function doTest() 18 function doTest()
19 { 19 {
20 var image = document.getElementById("image"); 20 var image = document.getElementById("image");
21 21
22 window.setTimeout(function() { 22 window.setTimeout(function() {
23 // Change the contents to green. 23 // Change the contents to green.
24 image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB CAIAAACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADElEQVR4nGNg+M8AAAICAQB7CYF4AAAAAElF TkSuQmCC" 24 image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB CAIAAACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADElEQVR4nGNg+M8AAAICAQB7CYF4AAAAAElF TkSuQmCC"
25 if (window.testRunner) { 25 if (window.testRunner) {
26 window.setTimeout(function() { 26 window.setTimeout(function() {
27 testRunner.notifyDone(); 27 testRunner.notifyDone();
28 }, 0); 28 }, 0);
29 } 29 }
30 }, 0); 30 }, 0);
31 } 31 }
32 32
33 window.addEventListener('load', doTest, false); 33 window.addEventListener('load', doTest, false);
34 </script> 34 </script>
35 </head> 35 </head>
36 <body> 36 <body>
37 <!-- When the test is done, there should only be a green square on the page --> 37 <!-- When the test is done, there should only be a green square on the page -->
38 38
39 <!-- Start with a red image --> 39 <!-- Start with a red image -->
40 <img id="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAA ACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQ mCC" /> 40 <img id="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAA ACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQ mCC" />
41 41
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html ('k') | LayoutTests/compositing/img-layer-grow.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698