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

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

Issue 2785503003: Image Capture: update PhotoCapabilities.idl to latest Spec changes (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html b/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
index 285c7dfa5829405d23e38e1c03db354efd80c0c1..49b8c370c9bf903788e62007f356779e16d7568b 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
@@ -8,7 +8,7 @@
</body>
<script>
-const fillLightModeNames = ["none", "off", "auto", "flash", "torch"];
+const mojoFillLightModeNames = ["none", "off", "auto", "flash"];
// This test verifies that ImageCapture can get PhotoCapabilities(), with a mock
// Mojo interface implementation.
@@ -55,12 +55,13 @@ async_test(function(t) {
mock_capabilities.width.current);
assert_equals(capabilities.imageWidth.step, mock_capabilities.width.step);
- assert_equals(capabilities.fillLightMode,
- fillLightModeNames[mock_capabilities.fill_light_mode],
+ assert_array_equals(
+ capabilities.fillLightMode,
+ [mojoFillLightModeNames[mock_capabilities.fill_light_mode]],
'fillLightMode');
- assert_true(capabilities.redEyeReduction,
- mock_capabilities.red_eye_reduction, 'redEyeReduction');
+ assert_equals(capabilities.redEyeReduction, 'controllable',
+ 'redEyeReduction');
t.done();
})
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698