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

Side by Side Diff: LayoutTests/fast/canvas/canvas-composite-image.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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test drawImage(image) with canvas with different composite modes.</ti tle> 4 <title>Test drawImage(image) with canvas with different composite modes.</ti tle>
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 11 matching lines...) Expand all
22 #output h1 { font-size: medium; font-weight: normal; } 22 #output h1 { font-size: medium; font-weight: normal; }
23 #output h2 { font-size: small; font-weight: normal; } 23 #output h2 { font-size: small; font-weight: normal; }
24 #output div { font-size: small; margin: 0px; } 24 #output div { font-size: small; margin: 0px; }
25 #output .pass { color: green; } 25 #output .pass { color: green; }
26 #output .fail { color: rgb(255, 0, 0); } 26 #output .fail { color: rgb(255, 0, 0); }
27 #output .error { color: rgb(255, 0, 64); } 27 #output .error { color: rgb(255, 0, 64); }
28 td { padding: 2px 5px; } 28 td { padding: 2px 5px; }
29 table { border-collapse: collapse; } 29 table { border-collapse: collapse; }
30 </style> 30 </style>
31 </head> 31 </head>
32 <body onload="runTest();"> 32 <body onload='runTest("dumpAsText");'>
33 <div>Test Results</div> 33 <div>Test Results</div>
34 <div><table id='outputtable'></table></div> 34 <div><table id='outputtable'></table></div>
35 <div>Test Image</div> 35 <div>Test Image</div>
36 <div><img id = "image" src="data:image/png;base64, 36 <div><img id = "image" src="data:image/png;base64,
37 iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwY 37 iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwY
38 AAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeB 38 AAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeB
39 DhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2w 39 DhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2w
40 FiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRC 40 FiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRC
41 iFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5E 41 iFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5E
42 rkJggg== 42 rkJggg==
43 "></div> 43 "></div>
44 <div>Test Output</div> 44 <div>Test Output</div>
45 <div id='output'></div> 45 <div id='output'></div>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698