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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/setoptions.html

Issue 2482983002: MediaSettingsRange: s/long/double/ in MediaSettingsRange.idl and PhotoCapabilities.idl (Closed)
Patch Set: s/float/double/ in fake_video_capture_device.* Created 4 years, 1 month 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/setoptions.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/setoptions.html b/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
index ea03a17dea34ec288982a84de2317291b1a88683..f33ad649c044dfb6f59de052de21958a81caacc0 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
@@ -21,7 +21,7 @@ async_test(function(t) {
var stream = canvas.captureStream();
var theMock = null;
- const optionsDict = { zoom : 7,
+ const optionsDict = { zoom : 1.7,
imageWidth : 1080,
imageHeight : 100,
focusMode : "single-shot",
@@ -52,7 +52,7 @@ async_test(function(t) {
})
.then(function() {
assert_true(theMock.options().has_zoom, 'has_zoom must be true');
- assert_equals(optionsDict.zoom, theMock.options().zoom, 'zoom value');
+ assert_approx_equals(optionsDict.zoom, theMock.options().zoom, 0.1, 'zoom value');
assert_equals(true, theMock.options().has_width, 'has_width must be true');
assert_equals(optionsDict.imageWidth, theMock.options().width, 'width value');
assert_equals(true, theMock.options().has_height, 'has_height must be true');

Powered by Google App Engine
This is Rietveld 408576698