| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 91 assert_true(capabilities.redEyeReduction, |
| 92 mock_capabilities.red_eye_reduction, 'redEyeReduction'); | 92 mock_capabilities.red_eye_reduction, 'redEyeReduction'); |
| 93 | 93 |
| 94 assert_true(capabilities.colorTemperature instanceof MediaSettingsRange); |
| 95 assert_equals(capabilities.colorTemperature.max, |
| 96 mock_capabilities.color_temperature.max); |
| 97 assert_equals(capabilities.colorTemperature.min, |
| 98 mock_capabilities.color_temperature.min); |
| 99 assert_equals(capabilities.colorTemperature.current, |
| 100 mock_capabilities.color_temperature.current); |
| 101 |
| 94 t.done(); | 102 t.done(); |
| 95 }) | 103 }) |
| 96 .catch(error => { | 104 .catch(error => { |
| 97 assert_unreached("Error during getPhotoCapabilities(): " + error); | 105 assert_unreached("Error during getPhotoCapabilities(): " + error); |
| 98 }); | 106 }); |
| 99 | 107 |
| 100 }, 'exercises the retrieval of Capabilities on ImageCapture API construction'); | 108 }, 'exercises the retrieval of Capabilities on ImageCapture API construction'); |
| 101 | 109 |
| 102 </script> | 110 </script> |
| OLD | NEW |