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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html

Issue 2023203002: Extend Blink mock devices to return frame rate on getSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html b/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html
index fce887bf46acb5d99f4139323b7aac8809416892..d897949cb5fb6c1c5efff0921dd2a29367962f27 100644
--- a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html
+++ b/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html
@@ -19,4 +19,14 @@ promise_test(function() {
});
}, 'A video track returns settings');
+promise_test(function() {
+ return navigator.mediaDevices.getUserMedia({video: true})
+ .then(function(s) {
+ settings = s.getVideoTracks()[0].getSettings();
+ assert_greater_than(Object.keys(settings).length, 0);
+ assert_true('frameRate' in settings,
+ 'Frame rate missing: ' + JSON.stringify(settings));
+ });
+}, 'A video track returns frame rate');
+
</script>
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698