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

Unified Diff: third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html

Issue 2804653003: Image Capture: make sure applyConstraints() only works for ImageCapture constraints (Closed)
Patch Set: LayoutTests Created 3 years, 8 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: third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html
diff --git a/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html b/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html
index c2b604a357d0227b2a65bf06821d2ea35d57f8e9..bc31ed05494c41d79c401f63d5f779451443e879 100644
--- a/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html
+++ b/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getConstraints.html
@@ -48,6 +48,13 @@ var makeAsyncTest = function(c) {
t.done();
});
+ // Clear constraints by sending an empty constraint set.
+ videoTrack.applyConstraints({})
+ .then(() => {
+ const constraintsOut = videoTrack.getConstraints();
+ assert_object_equals(constraintsOut, {}, "constraints");
+ t.done();
+ });
});
};

Powered by Google App Engine
This is Rietveld 408576698