| 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.
|
| + this.done();
|
| });
|
| }, 'exercises the ImageCapture API takePhoto().');
|
|
|
|
|