| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 focusMode : "single-shot", | 27 focusMode : "single-shot", |
| 28 pointsOfInterest : [{x : 0.1, y : 0.2}, | 28 pointsOfInterest : [{x : 0.1, y : 0.2}, |
| 29 {x : 0.3, y : 0.4}], | 29 {x : 0.3, y : 0.4}], |
| 30 exposureMode : "continuous", | 30 exposureMode : "continuous", |
| 31 exposureCompensation : 133, | 31 exposureCompensation : 133, |
| 32 whiteBalanceMode : "manual", | 32 whiteBalanceMode : "manual", |
| 33 iso : 120, | 33 iso : 120, |
| 34 redEyeReduction : true, | 34 redEyeReduction : true, |
| 35 fillLightMode : "flash", | 35 fillLightMode : "flash", |
| 36 colorTemperature : 6000, | 36 colorTemperature : 6000, |
| 37 brightness : 3, |
| 38 contrast : 4, |
| 39 saturation : 5, |
| 40 sharpness : 6 |
| 37 }; | 41 }; |
| 38 mockImageCaptureReady | 42 mockImageCaptureReady |
| 39 .then(mock => { | 43 .then(mock => { |
| 40 theMock = mock; | 44 theMock = mock; |
| 41 return new ImageCapture(stream.getVideoTracks()[0]); | 45 return new ImageCapture(stream.getVideoTracks()[0]); |
| 42 }) | 46 }) |
| 43 .catch(error => { | 47 .catch(error => { |
| 44 assert_unreached("Error creating MockImageCapture: " + error); | 48 assert_unreached("Error creating MockImageCapture: " + error); |
| 45 }) | 49 }) |
| 46 .then(capturer => { | 50 .then(capturer => { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 'colorTemperature value'); | 107 'colorTemperature value'); |
| 104 | 108 |
| 105 t.done(); | 109 t.done(); |
| 106 }) | 110 }) |
| 107 .catch(error => { | 111 .catch(error => { |
| 108 assert_unreached("Error during setOptions(): " + error); | 112 assert_unreached("Error during setOptions(): " + error); |
| 109 }); | 113 }); |
| 110 }, 'exercises the ImageCapture API setOptions()'); | 114 }, 'exercises the ImageCapture API setOptions()'); |
| 111 | 115 |
| 112 </script> | 116 </script> |
| OLD | NEW |