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

Unified Diff: content/test/data/media/getusermedia.html

Issue 811653007: Fixes WebRTC browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/getusermedia.html
diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html
index f12767173523f7b5aa145649e7c007c5aeba00a8..f194e1a57d98329a45543d087e5c669345e7254b 100644
--- a/content/test/data/media/getusermedia.html
+++ b/content/test/data/media/getusermedia.html
@@ -13,7 +13,16 @@
function getSources() {
MediaStreamTrack.getSources(function(devices) {
document.title = 'Media devices available';
- sendValueToTest(JSON.stringify(devices));
+ var results = [];
+ for (var device, i = 0; device = devices[i]; ++i) {
+ results.push({
+ 'id': device.id,
+ 'kind': device.kind,
+ 'label': device.label,
+ 'facing': device.facing
+ });
+ }
+ sendValueToTest(JSON.stringify(results));
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698