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

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

Issue 2164473002: ImageCapture: wire PhotoCapabilities' ISO, width, height and PhotoSettings' width and height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@ comment Created 4 years, 5 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/setoptions.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/setoptions.html b/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
index 6decd3428a7cf5e8e5ceca5821c98d2ed5ba621b..fc6e73b383ecc965c68c5c216dbd1888fd4d3b78 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
@@ -19,7 +19,7 @@ async_test(function(t) {
var stream = canvas.captureStream();
var theMock = null;
- const optionsDict = { zoom : 7 };
+ const optionsDict = { zoom : 7, imageWidth : 1080, imageHeight : 100 };
mockImageCaptureReady
.then(mock => {
theMock = mock;
@@ -32,8 +32,12 @@ async_test(function(t) {
return capturer.setOptions(optionsDict);
})
.then(function() {
- assert_equals(1, theMock.options().has_zoom, 'has_zoom must be true');
+ assert_equals(true, theMock.options().has_zoom, 'has_zoom must be true');
foolip 2016/07/22 01:42:34 assert_true instead?
mcasas 2016/07/22 02:00:04 Done.
assert_equals(optionsDict.zoom, theMock.options().zoom, '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');
+ assert_equals(optionsDict.imageHeight, theMock.options().height, 'height value');
t.done();
})
.catch(error => {

Powered by Google App Engine
This is Rietveld 408576698