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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-capture-preview.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, 9 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 9
8 <script type="text/javascript"> 10 <script type="text/javascript">
9 11
10 var previewURL = ""; 12 var previewURL = "";
11 var localStream = null; 13 var localStream = null;
12 14
13 if (window.internals) 15 if (window.internals)
14 window.internals.settings.setMediaPlaybackRequiresUserGesture(true); 16 window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
15 17
16 function startPreview() 18 function startPreview()
17 { 19 {
18 video.src = previewURL; 20 video.src = previewURL;
19 } 21 }
20 22
21 function gotStream(stream) 23 function gotStream(stream)
22 { 24 {
23 consoleWrite("got a stream"); 25 consoleWrite("got a stream");
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 waitForEvent("canplay"); 59 waitForEvent("canplay");
58 waitForEvent("play"); 60 waitForEvent("play");
59 waitForEvent("canplaythrough"); 61 waitForEvent("canplaythrough");
60 } 62 }
61 63
62 </script> 64 </script>
63 </head> 65 </head>
64 66
65 <body onload="playPreview()"> 67 <body onload="playPreview()">
66 <video width="320" height="240" autoplay="autoplay"></video> 68 <video width="320" height="240" autoplay="autoplay"></video>
67 </body> 69 </body>
68 </html> 70 </html>
69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698