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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-video.html

Issue 1431783002: Adding a layout test for drawing a live video to a canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo fix Created 5 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Ensure correct behavior of drawImage video elements.</title> 3 <title>Ensure correct behavior of drawImage video elements.</title>
4 <style trpe="text/css"> 4 <style type="text/css">
5 video { 5 video {
6 display: none; 6 display: none;
7 } 7 }
8 </style> 8 </style>
9 </head> 9 </head>
10 <body> 10 <body>
11 <canvas id="canvas"></canvas> 11 <canvas id="canvas"></canvas>
12 <video id="video"> 12 <video id="video">
13 <source src="resources/canvas_video.mp4" type='video/mp4' /> 13 <source src="resources/canvas_video.mp4" type='video/mp4' />
14 <source src="resources/canvas_video.webm" type='video/webm' /> 14 <source src="resources/canvas_video.webm" type='video/webm' />
(...skipping 21 matching lines...) Expand all
36 ctx.fillRect(0, 0, length, length); 36 ctx.fillRect(0, 0, length, length);
37 ctx.drawImage(video, 0, 0); 37 ctx.drawImage(video, 0, 0);
38 ctx.globalAlpha = 0.5; 38 ctx.globalAlpha = 0.5;
39 ctx.drawImage(video, 0, 60); 39 ctx.drawImage(video, 0, 60);
40 if (window.testRunner) 40 if (window.testRunner)
41 testRunner.notifyDone(); 41 testRunner.notifyDone();
42 } 42 }
43 </script> 43 </script>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698