| 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 22 matching lines...) Expand all Loading... |
| 33 assert_equals(blob.type, 'image/cat'); | 33 assert_equals(blob.type, 'image/cat'); |
| 34 assert_equals(blob.size, 2); | 34 assert_equals(blob.size, 2); |
| 35 t.done(); | 35 t.done(); |
| 36 }) | 36 }) |
| 37 .catch(error => { | 37 .catch(error => { |
| 38 assert_unreached("Error during takePhoto(): " + error.message); | 38 assert_unreached("Error during takePhoto(): " + error.message); |
| 39 }); | 39 }); |
| 40 }, 'exercises ImageCapture.takePhoto()'); | 40 }, 'exercises ImageCapture.takePhoto()'); |
| 41 | 41 |
| 42 </script> | 42 </script> |
| OLD | NEW |