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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-capture-canvas.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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
OLDNEW
1 <!DOCTYPE HTML"> 1 <!DOCTYPE HTML">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=video-test.js></script> 7 <script src=video-test.js></script>
6 <script src=video-played.js></script> 8 <script src=video-played.js></script>
7 <script src="../resources/js-test.js"></script> 9 <script src="../resources/js-test.js"></script>
8 10
9 <script type="text/javascript"> 11 <script type="text/javascript">
10 12
11 if (window.internals) 13 if (window.internals)
12 window.internals.settings.setMediaPlaybackRequiresUserGesture(true); 14 window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
13 15
14 function gotStream(stream) 16 function gotStream(stream)
15 { 17 {
16 consoleWrite("got a stream"); 18 consoleWrite("got a stream");
17 previewURL = URL.createObjectURL(stream); 19 previewURL = URL.createObjectURL(stream);
18 video.src = previewURL; 20 video.src = previewURL;
19 consoleWrite("start preview"); 21 consoleWrite("start preview");
20 } 22 }
21 23
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 59
58 waitForEvent('canplaythrough', canplaythrough); 60 waitForEvent('canplaythrough', canplaythrough);
59 } 61 }
60 62
61 </script> 63 </script>
62 </head> 64 </head>
63 65
64 <body onload="playPreview()"> 66 <body onload="playPreview()">
65 <video width="320" height="240" autoplay="autoplay"></video> 67 <video width="320" height="240" autoplay="autoplay"></video>
66 <canvas width="1" height="1" ></canvas> 68 <canvas width="1" height="1" ></canvas>
67 </body> 69 </body>
68 </html> 70 </html>
69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698