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

Side by Side Diff: third_party/WebKit/LayoutTests/imagecapture/setoptions.html

Issue 2787933002: ImageCapture: separate fillLightMode, redEyeReduction and Torch (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
11 const fillLightModeNames = ["none", "off", "auto", "flash", "torch"]; 11 const fillLightModeNames = ["off", "auto", "flash"];
12 12
13 // This test verifies that ImageCapture can call setOptions()s, with a mock Mojo 13 // This test verifies that ImageCapture can call setOptions()s, with a mock Mojo
14 // interface implementation. 14 // interface implementation.
15 async_test(function(t) { 15 async_test(function(t) {
16 var canvas = document.getElementById('canvas'); 16 var canvas = document.getElementById('canvas');
17 var context = canvas.getContext("2d"); 17 var context = canvas.getContext("2d");
18 context.fillStyle = "red"; 18 context.fillStyle = "red";
19 context.fillRect(0, 0, 10, 10); 19 context.fillRect(0, 0, 10, 10);
20 var stream = canvas.captureStream(); 20 var stream = canvas.captureStream();
21 21
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 'fillLightMode'); 57 'fillLightMode');
58 58
59 t.done(); 59 t.done();
60 }) 60 })
61 .catch(error => { 61 .catch(error => {
62 assert_unreached("Error during setOptions(): " + error.message); 62 assert_unreached("Error during setOptions(): " + error.message);
63 }); 63 });
64 }, 'exercises ImageCapture.setOptions(options)'); 64 }, 'exercises ImageCapture.setOptions(options)');
65 65
66 </script> 66 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698