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

Side by Side Diff: content/test/data/media/getusermedia.html

Issue 2122153002: Restructure and add logs to WebRtcGetUserMediaBrowserTest.GetUserMediaWithMandatorySourceID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 $ = function(id) { 5 $ = function(id) {
6 return document.getElementById(id); 6 return document.getElementById(id);
7 }; 7 };
8 8
9 setAllEventsOccuredHandler(function() { 9 setAllEventsOccuredHandler(function() {
10 reportTestSuccess(); 10 reportTestSuccess();
(...skipping 11 matching lines...) Expand all
22 'facing': device.facing 22 'facing': device.facing
23 }); 23 });
24 } 24 }
25 sendValueToTest(JSON.stringify(results)); 25 sendValueToTest(JSON.stringify(results));
26 }); 26 });
27 } 27 }
28 28
29 // Creates a MediaStream and renders it locally. When the video is detected to 29 // Creates a MediaStream and renders it locally. When the video is detected to
30 // be rolling, the stream should be stopped. 30 // be rolling, the stream should be stopped.
31 function getUserMediaAndStop(constraints) { 31 function getUserMediaAndStop(constraints) {
32 console.log('Calling getUserMediaAndStop.'); 32 console.log('Calling getUserMediaAndStop. constraints : ' +
33 JSON.stringify(constraints));
33 navigator.webkitGetUserMedia( 34 navigator.webkitGetUserMedia(
34 constraints, 35 constraints,
35 function(stream) { 36 function(stream) {
36 detectVideoInLocalView1(stream, function() { 37 detectVideoInLocalView1(stream, function() {
37 stream.getVideoTracks()[0].stop(); 38 stream.getVideoTracks()[0].stop();
38 waitForVideoToStop('local-view-1'); 39 waitForVideoToStop('local-view-1');
39 }); 40 });
40 }, 41 },
41 failedCallback); 42 failedCallback);
42 } 43 }
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 </tr> 531 </tr>
531 <tr> 532 <tr>
532 <td><video id="local-view-2" width="320" height="240" autoplay 533 <td><video id="local-view-2" width="320" height="240" autoplay
533 style="display:none"></video></td> 534 style="display:none"></video></td>
534 <td><canvas id="local-view-2-canvas" width="320" height="240" 535 <td><canvas id="local-view-2-canvas" width="320" height="240"
535 style="display:none"></canvas></td> 536 style="display:none"></canvas></td>
536 </tr> 537 </tr>
537 </table> 538 </table>
538 </body> 539 </body>
539 </html> 540 </html>
OLDNEW
« no previous file with comments | « content/browser/media/webrtc/webrtc_getusermedia_browsertest.cc ('k') | content/test/data/media/webrtc_test_utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698