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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html

Issue 2795693004: Image Capture: add |points_of_interest| to mojo and wire it to IDL layer (Closed)
Patch Set: reillyg@ comment Created 3 years, 9 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/MediaStreamTrack-applyConstraints-getSettings.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html b/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html
index 4b6a9a121d203a2b317c44eda39c9738375c1a03..cfbb98545f88382b7e2652e99d60ef86d629eab0 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html
@@ -66,10 +66,21 @@ async_test(function(t) {
assert_equals(constraints.advanced[0].focusMode, settings.focusMode,
'focusMode');
+ assert_equals(constraints.advanced[0].pointsOfInterest.length,
+ settings.pointsOfInterest.length, 'pointsOfInterest');
+ for (i = 0; i < constraints.advanced[0].pointsOfInterest.length; ++i) {
+ assert_approx_equals(constraints.advanced[0].pointsOfInterest[i].x,
+ settings.pointsOfInterest[i].x, 0.01,
+ 'pointsOfInterest x');
+ assert_approx_equals(constraints.advanced[0].pointsOfInterest[i].y,
+ settings.pointsOfInterest[i].y, 0.01,
+ 'pointsOfInterest y');
+ }
+
assert_equals(constraints.advanced[0].exposureCompensation,
- settings.exposureCompensation, 'exposure_compensation');
+ settings.exposureCompensation, 'exposureCompensation');
assert_equals(constraints.advanced[0].colorTemperature,
- settings.colorTemperature, 'color_temperature');
+ settings.colorTemperature, 'colorTemperature');
assert_equals(constraints.advanced[0].iso, settings.iso, 'iso');
assert_equals(constraints.advanced[0].brightness, settings.brightness,

Powered by Google App Engine
This is Rietveld 408576698