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

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

Issue 2795923003: Image Capture: remove MediaSettingsRange.current (Closed)
Patch Set: bugfix: getMediaTrackSettings() should merge dictionaries, not override the input parameter; Layout… 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-getCapabilities.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 assert_equals(constraints.advanced[0].torch, settings.torch, 'torch'); 97 // TODO(mcasas): do |torch| when the mojom interface is updated,
98 // https://crbug.com/700607.
98 99
99 t.done(); 100 t.done();
100 }) 101 })
101 .catch(error => { 102 .catch(error => {
102 assert_unreached("Error applying constraints: " + error.message); 103 assert_unreached("Error applying constraints: " + error.message);
103 }); 104 });
104 105
105 }, 'exercises an applyConstraints() - getSettings() cycle'); 106 }, 'exercises an applyConstraints() - getSettings() cycle');
106 107
107 </script> 108 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-getCapabilities.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698