OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 |
| 6 // Tests that getSupportedConstraints() returns what it should. |
| 7 test(function() { |
| 8 supported_constraints = navigator.mediaDevices.getSupportedConstraints(); |
| 9 |
| 10 assert_true(supported_constraints.whiteBalanceMode); |
| 11 assert_true(supported_constraints.exposureMode); |
| 12 assert_true(supported_constraints.focusMode); |
| 13 assert_true(supported_constraints.pointsOfInterest); |
| 14 assert_true(supported_constraints.exposureCompensation); |
| 15 assert_true(supported_constraints.colorTemperature); |
| 16 assert_true(supported_constraints.iso); |
| 17 assert_true(supported_constraints.brightness); |
| 18 assert_true(supported_constraints.contrast); |
| 19 assert_true(supported_constraints.saturation); |
| 20 assert_true(supported_constraints.sharpness); |
| 21 assert_true(supported_constraints.zoom); |
| 22 assert_true(supported_constraints.torch); |
| 23 }, 'Iamge Capture supported constraints'); |
| 24 |
| 25 </script> |
OLD | NEW |