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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.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.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html b/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html
index 04e6e85232594c308c6fdd3536e0f31a37e74229..9db07b1b5ca7091d8eaa61a82a97957a5a031dd9 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html
@@ -63,21 +63,33 @@ async_test(function(t) {
meteringModeNames[theMock.options().focus_mode],
'focusMode');
+ assert_equals(constraints.advanced[0].pointsOfInterest.length,
+ theMock.options().points_of_interest.length,
+ 'pointsOfInterest');
+ for (i = 0; i < constraints.advanced[0].pointsOfInterest.length; ++i) {
+ assert_approx_equals(constraints.advanced[0].pointsOfInterest[i].x,
+ theMock.options().points_of_interest[i].x, 0.01,
+ 'pointsOfInterest x');
+ assert_approx_equals(constraints.advanced[0].pointsOfInterest[i].y,
+ theMock.options().points_of_interest[i].y, 0.01,
+ 'pointsOfInterest y');
+ }
+
assert_equals(constraints.advanced[0].exposureCompensation,
theMock.options().exposure_compensation,
- 'exposure_compensation');
+ 'exposureCompensation');
assert_equals(constraints.advanced[0].colorTemperature,
- theMock.options().color_temperature, 'color_temperature');
+ theMock.options().color_temperature, 'colorTemperature');
assert_equals(constraints.advanced[0].iso, theMock.options().iso, 'iso');
assert_equals(constraints.advanced[0].brightness,
- theMock.options().brightness, 'brightness value');
+ theMock.options().brightness, 'brightness');
assert_equals(constraints.advanced[0].contrast,
- theMock.options().contrast, 'constrast value');
+ theMock.options().contrast, 'constrast');
assert_equals(constraints.advanced[0].saturation,
- theMock.options().saturation, 'saturation value');
+ theMock.options().saturation, 'saturation');
assert_equals(constraints.advanced[0].sharpness,
- theMock.options().sharpness, 'sharpness value');
+ theMock.options().sharpness, 'sharpness');
assert_equals(constraints.advanced[0].torch, theMock.options().torch,
'torch');

Powered by Google App Engine
This is Rietveld 408576698