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

Unified Diff: chrome/test/data/webrtc/media_devices.js

Issue 341123005: Disable getMediaDevices tests. Revert to use getSources instead for getUserMedia tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review + rebase. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webrtc/media_devices.js
diff --git a/chrome/test/data/webrtc/media_devices.js b/chrome/test/data/webrtc/media_devices.js
index 9a0dfb216c9c8de764ba7056febe32bbf26b412e..356184e3b5e6dbf75e148f89f0a5be47aba36613 100644
--- a/chrome/test/data/webrtc/media_devices.js
+++ b/chrome/test/data/webrtc/media_devices.js
@@ -29,7 +29,7 @@ function getSources() {
/**
* Queries for video input devices on the current system using the
- * getMediaDevices API.
+ * getSources API.
*
* This does not guarantee that a getUserMedia with video will succeed, as the
* camera could be busy for instance.
@@ -38,10 +38,10 @@ function getSources() {
* no-video-input-devices otherwise.
*/
function hasVideoInputDeviceOnSystem() {
- navigator.getMediaDevices(function(devices) {
+ MediaStreamTrack.getSources(function(devices) {
var hasVideoInputDevice = false;
devices.forEach(function(device) {
- if (device.kind == 'videoinput')
+ if (device.kind == 'video')
hasVideoInputDevice = true;
});

Powered by Google App Engine
This is Rietveld 408576698