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

Side by Side Diff: LayoutTests/fast/canvas/canvas-composite-canvas.html

Issue 530723003: canvas2d.drawImage(video) doesn't composite correctly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mark fast/canvas/canvas-composite-repaint-by-all-imagesource.html to NeedsRebaseline Created 6 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/canvas/canvas-composite-image.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test drawImage(canvas) with canvas with different composite modes.</t itle> 4 <title>Test drawImage(canvas) with canvas with different composite modes.</t itle>
5 <script src="resources/canvas-composite-image-common.js"></script> 5 <script src="resources/canvas-composite-image-common.js"></script>
6 <script type="application/x-javascript"> 6 <script type="application/x-javascript">
7 function drawImage(context, compositeIndex, alpha) { 7 function drawImage(context, compositeIndex, alpha) {
8 context.globalCompositeOperation = compositeTypes[compositeIndex]; 8 context.globalCompositeOperation = compositeTypes[compositeIndex];
9 if (alpha) 9 if (alpha)
10 context.globalAlpha = 0.5; 10 context.globalAlpha = 0.5;
(...skipping 19 matching lines...) Expand all
30 #output h1 { font-size: medium; font-weight: normal; } 30 #output h1 { font-size: medium; font-weight: normal; }
31 #output h2 { font-size: small; font-weight: normal; } 31 #output h2 { font-size: small; font-weight: normal; }
32 #output div { font-size: small; margin: 0px; } 32 #output div { font-size: small; margin: 0px; }
33 #output .pass { color: green; } 33 #output .pass { color: green; }
34 #output .fail { color: rgb(255, 0, 0); } 34 #output .fail { color: rgb(255, 0, 0); }
35 #output .error { color: rgb(255, 0, 64); } 35 #output .error { color: rgb(255, 0, 64); }
36 td { padding: 2px 5px; } 36 td { padding: 2px 5px; }
37 table { border-collapse: collapse; } 37 table { border-collapse: collapse; }
38 </style> 38 </style>
39 </head> 39 </head>
40 <body onload="runTest();"> 40 <body onload='runTest("dumpAsText");'>
41 <div>Test Results</div> 41 <div>Test Results</div>
42 <div><table id='outputtable'></table></div> 42 <div><table id='outputtable'></table></div>
43 <div>Test Image</div> 43 <div>Test Image</div>
44 <div><img id = "image" src="data:image/png;base64, 44 <div><img id = "image" src="data:image/png;base64,
45 iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwY 45 iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwY
46 AAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeB 46 AAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeB
47 DhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2w 47 DhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2w
48 FiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRC 48 FiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRC
49 iFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5E 49 iFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5E
50 rkJggg== 50 rkJggg==
51 "></div> 51 "></div>
52 <div>Source Canvas</div> 52 <div>Source Canvas</div>
53 <div><canvas id = "source-canvas"></canvas></div> 53 <div><canvas id = "source-canvas"></canvas></div>
54 <div>Test Output</div> 54 <div>Test Output</div>
55 <div id='output'></div> 55 <div id='output'></div>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/canvas/canvas-composite-image.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698