Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html |
| index b8d40007f7865d030c46fd188bb67c570729a533..a71a0f27c918487f19eb9f83e33531ce6cf920b4 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html |
| +++ b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html |
| @@ -20,12 +20,13 @@ var test = async_test(function() { |
| capturer.takePhoto() |
| .then(blob => { |
| - assert_true(blob.type.length > 0); |
| - assert_true(blob.size > 0); |
| - this.done(); |
| + assert_unreached('takePhoto() should not have been resolved'); |
| }) |
| .catch(error => { |
| - assert_unreached('Error during takePhoto(): '+ error); |
| + // LayoutTests do not have a real or a fake camera whatsoever, so content |
| + // will not find a matching device for the Track's source id, and the |
| + // promise will be rejected. |
|
mlamouri (slow - plz ping)
2016/05/09 12:44:35
Are you planning to fix this? Should you have a TO
mcasas
2016/05/09 16:48:41
Done. It essentially means tapping the source id
b
|
| + this.done(); |
| }); |
| }, 'exercises the ImageCapture API takePhoto().'); |