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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-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 createPattern with video elements.</title> 3 <title>Ensure correct behavior of createPattern with 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 20 matching lines...) Expand all
35 ctx.fillStyle = "blue"; 35 ctx.fillStyle = "blue";
36 ctx.fillRect(0, 0, length, length); 36 ctx.fillRect(0, 0, length, length);
37 ctx.fillStyle = ctx.createPattern(video, "no-repeat"); 37 ctx.fillStyle = ctx.createPattern(video, "no-repeat");
38 ctx.fillRect(0, 0, length, length); 38 ctx.fillRect(0, 0, length, length);
39 if (window.testRunner) 39 if (window.testRunner)
40 testRunner.notifyDone(); 40 testRunner.notifyDone();
41 } 41 }
42 </script> 42 </script>
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698