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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js

Issue 2877273002: Image Capture: reject setOptions()/applyConstraints() if any argument is unsupported (Closed)
Patch Set: reverted renaming bc it breaks patching Created 3 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
Index: third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js
diff --git a/third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js b/third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js
index 18535d2a5c6eb6b02aaa014f9d64ab747cdfed01..9ac5bd2987923f560ecc97468f30be707634fdb8 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js
+++ b/third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js
@@ -25,7 +25,10 @@ let mockImageCaptureReady = define(
imageCapture.MeteringMode.CONTINUOUS
],
current_exposure_mode: imageCapture.MeteringMode.SINGLE_SHOT,
- supported_focus_modes: [imageCapture.MeteringMode.MANUAL],
+ supported_focus_modes: [
+ imageCapture.MeteringMode.MANUAL,
+ imageCapture.MeteringMode.SINGLE_SHOT
+ ],
current_focus_mode: imageCapture.MeteringMode.MANUAL,
points_of_interest: [{x: 0.4, y: 0.6}],

Powered by Google App Engine
This is Rietveld 408576698