| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 mock_capabilities.exposure_compensation.current); | 81 mock_capabilities.exposure_compensation.current); |
| 82 | 82 |
| 83 assert_equals(capabilities.whiteBalanceMode, | 83 assert_equals(capabilities.whiteBalanceMode, |
| 84 meteringModeNames[mock_capabilities.white_balance_mode], | 84 meteringModeNames[mock_capabilities.white_balance_mode], |
| 85 'whiteBalanceMode'); | 85 'whiteBalanceMode'); |
| 86 | 86 |
| 87 assert_equals(capabilities.fillLightMode, | 87 assert_equals(capabilities.fillLightMode, |
| 88 fillLightModeNames[mock_capabilities.fill_light_mode], | 88 fillLightModeNames[mock_capabilities.fill_light_mode], |
| 89 'fillLightMode'); | 89 'fillLightMode'); |
| 90 | 90 |
| 91 assert_true(capabilities.redEyeReduction, |
| 92 mock_capabilities.red_eye_reduction, 'redEyeReduction'); |
| 93 |
| 91 t.done(); | 94 t.done(); |
| 92 }) | 95 }) |
| 93 .catch(error => { | 96 .catch(error => { |
| 94 assert_unreached("Error during getPhotoCapabilities(): " + error); | 97 assert_unreached("Error during getPhotoCapabilities(): " + error); |
| 95 }); | 98 }); |
| 96 | 99 |
| 97 }, 'exercises the retrieval of Capabilities on ImageCapture API construction'); | 100 }, 'exercises the retrieval of Capabilities on ImageCapture API construction'); |
| 98 | 101 |
| 99 </script> | 102 </script> |
| OLD | NEW |