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

Side by Side Diff: LayoutTests/fast/canvas/webgl/webgl-composite-modes-repaint.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 <body onload="runRepaintTest()"> 2 <body onload="runRepaintTest()">
3 <span id="description" style="color: white"> 3 <span id="description" style="color: white">
4 This test is only useful as a pixel test. You should see two rows with 4 canvase s in each. The top row of canvases should have a black background, the bottom ro w should have a dark blue background. 4 This test is only useful as a pixel test. You should see two rows with 4 canvase s in each. The top row of canvases should have a black background, the bottom ro w should have a dark blue background.
5 The canvases in the first two rows should have a single triangle. The canvases o n the left should have two triangles superimposed on top of each other. 5 The canvases in the first two rows should have a single triangle. The canvases o n the left should have two triangles superimposed on top of each other.
6 If multisampling is supported, the odd columns should have smooth edges instead of jagged stair-stepping. 6 If multisampling is supported, the odd columns should have smooth edges instead of jagged stair-stepping.
7 </span> 7 </span>
8 <br> 8 <br>
9 <style> 9 <style>
10 canvas { 10 canvas {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 </script> 43 </script>
44 <script src="resources/webgl-test-utils.js"></script> 44 <script src="resources/webgl-test-utils.js"></script>
45 <script src="../../repaint/resources/repaint.js"></script> 45 <script src="../../repaint/resources/repaint.js"></script>
46 <script> 46 <script>
47 47
48 var ctxs = [] 48 var ctxs = []
49 49
50 if (window.testRunner) { 50 if (window.testRunner) {
51 testRunner.overridePreference("WebKitWebGLEnabled", "1"); 51 testRunner.overridePreference("WebKitWebGLEnabled", "1");
52 testRunner.dumpAsText(true); 52 testRunner.dumpAsTextWithPixelResults();
53 document.getElementById("description").style.position = "absolute"; 53 document.getElementById("description").style.position = "absolute";
54 document.getElementById("description").style.top = "-5000px"; 54 document.getElementById("description").style.top = "-5000px";
55 } 55 }
56 56
57 for (var i=0; i<8; ++i) { 57 for (var i=0; i<8; ++i) {
58 var attrs = { 58 var attrs = {
59 'alpha': (i >= 4), 59 'alpha': (i >= 4),
60 'preserveDrawingBuffer': (i % 4) >= 2, 60 'preserveDrawingBuffer': (i % 4) >= 2,
61 'antialias': (i % 2) == 1 61 'antialias': (i % 2) == 1
62 }; 62 };
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 for (var i=0; i<8; ++i) 113 for (var i=0; i<8; ++i)
114 draw(ctxs[i], offset); 114 draw(ctxs[i], offset);
115 } 115 }
116 116
117 drawAll(0); 117 drawAll(0);
118 118
119 function repaintTest() { 119 function repaintTest() {
120 drawAll(50); 120 drawAll(50);
121 } 121 }
122 </script> 122 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/webgl/webgl-composite-modes.html ('k') | LayoutTests/fast/canvas/webgl/webgl-layer-update.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698