| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 assert_equals(capabilities.zoom.max, mock_capabilities.zoom.max); | 122 assert_equals(capabilities.zoom.max, mock_capabilities.zoom.max); |
| 123 assert_equals(capabilities.zoom.min, mock_capabilities.zoom.min); | 123 assert_equals(capabilities.zoom.min, mock_capabilities.zoom.min); |
| 124 assert_equals(capabilities.zoom.current, mock_capabilities.zoom.current)
; | 124 assert_equals(capabilities.zoom.current, mock_capabilities.zoom.current)
; |
| 125 assert_equals(capabilities.zoom.step, mock_capabilities.zoom.step); | 125 assert_equals(capabilities.zoom.step, mock_capabilities.zoom.step); |
| 126 | 126 |
| 127 // TODO(mcasas): check |torch| when the mojom interface is updated, | 127 // TODO(mcasas): check |torch| when the mojom interface is updated, |
| 128 // https://crbug.com/700607. | 128 // https://crbug.com/700607. |
| 129 | 129 |
| 130 t.done(); | 130 t.done(); |
| 131 }, 100); | 131 }, 100); |
| 132 }) | 132 }, |
| 133 .catch(error => { | 133 error => { |
| 134 assert_unreached("Error creating MockImageCapture: " + error); | 134 assert_unreached("Error creating MockImageCapture: " + error); |
| 135 }) | 135 }) |
| 136 | 136 |
| 137 }, 'exercises the retrieval of MediaTrackCapabilities'); | 137 }, 'exercises MediaStreamTrack.getCapabilities()'); |
| 138 | 138 |
| 139 </script> | 139 </script> |
| OLD | NEW |