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

Side by Side Diff: LayoutTests/fast/canvas/webgl/webgl-layer-update.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 <script> 3 <script>
4 function doUpdate() 4 function doUpdate()
5 { 5 {
6 document.getElementsByTagName('canvas')[0].style.top = "60px"; 6 document.getElementsByTagName('canvas')[0].style.top = "60px";
7 7
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.display(); 9 testRunner.display();
10 testRunner.notifyDone(); 10 testRunner.notifyDone();
(...skipping 25 matching lines...) Expand all
36 outline: 1px solid blue; 36 outline: 1px solid blue;
37 } 37 }
38 body { 38 body {
39 background-color: darkblue; 39 background-color: darkblue;
40 } 40 }
41 </style> 41 </style>
42 <script> 42 <script>
43 43
44 if (window.testRunner) { 44 if (window.testRunner) {
45 testRunner.overridePreference("WebKitWebGLEnabled", "1"); 45 testRunner.overridePreference("WebKitWebGLEnabled", "1");
46 testRunner.dumpAsText(true); 46 testRunner.dumpAsTextWithPixelResults();
47 document.getElementById("description").style.position = "absolute"; 47 document.getElementById("description").style.position = "absolute";
48 document.getElementById("description").style.top = "-5000px"; 48 document.getElementById("description").style.top = "-5000px";
49 } 49 }
50 50
51 var can = document.createElement('canvas'); 51 var can = document.createElement('canvas');
52 can.width = can.height = 100; 52 can.width = can.height = 100;
53 can.style.position = "absolute"; 53 can.style.position = "absolute";
54 can.style.left = "40px"; 54 can.style.left = "40px";
55 can.style.top = "40px"; 55 can.style.top = "40px";
56 document.body.appendChild(can); 56 document.body.appendChild(can);
57 var ctx = can.getContext("experimental-webgl"); 57 var ctx = can.getContext("experimental-webgl");
58 ctx.clearColor(1, 0, 0, 1); 58 ctx.clearColor(1, 0, 0, 1);
59 ctx.clear(ctx.COLOR_BUFFER_BIT); 59 ctx.clear(ctx.COLOR_BUFFER_BIT);
60 60
61 if (window.testRunner) 61 if (window.testRunner)
62 testRunner.display(); 62 testRunner.display();
63 </script> 63 </script>
64 </body> 64 </body>
65 </html> 65 </html>
66 66
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/webgl/webgl-composite-modes-repaint.html ('k') | LayoutTests/fast/canvas/zero-size-fill-rect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698