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

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

Issue 2798263003: Image Capture: add |supports_torch| field to mojom (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/mock-imagecapture.js"></script> 5 <script src="resources/mock-imagecapture.js"></script>
6 <body> 6 <body>
7 <canvas id='canvas' width=10 height=10/> 7 <canvas id='canvas' width=10 height=10/>
8 </body> 8 </body>
9 <script> 9 <script>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 'brightness'); 87 'brightness');
88 assert_equals(constraints.advanced[0].contrast, settings.contrast, 88 assert_equals(constraints.advanced[0].contrast, settings.contrast,
89 'contrast'); 89 'contrast');
90 assert_equals(constraints.advanced[0].saturation, settings.saturation, 90 assert_equals(constraints.advanced[0].saturation, settings.saturation,
91 'saturation'); 91 'saturation');
92 assert_equals(constraints.advanced[0].sharpness, settings.sharpness, 92 assert_equals(constraints.advanced[0].sharpness, settings.sharpness,
93 'sharpness'); 93 'sharpness');
94 94
95 assert_equals(constraints.advanced[0].zoom, settings.zoom, 'zoom'); 95 assert_equals(constraints.advanced[0].zoom, settings.zoom, 'zoom');
96 96
97 // TODO(mcasas): do |torch| when the mojom interface is updated, 97 assert_equals(constraints.advanced[0].torch, settings.torch, 'torch');
98 // https://crbug.com/700607.
99 98
100 t.done(); 99 t.done();
101 }) 100 })
102 .catch(error => { 101 .catch(error => {
103 assert_unreached("Error applying constraints: " + error.message); 102 assert_unreached("Error applying constraints: " + error.message);
104 }); 103 });
105 104
106 }, 'exercises an applyConstraints() - getSettings() cycle'); 105 }, 'exercises an applyConstraints() - getSettings() cycle');
107 106
108 </script> 107 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698