| 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..e6476b795b8c0f3aa1e3b8fac5c7c406092e484c 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html
|
| @@ -20,12 +20,14 @@ 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.
|
| + // TODO(mcasas): Revisit all this when https://crbug.com/610333 is solved.
|
| + this.done();
|
| });
|
| }, 'exercises the ImageCapture API takePhoto().');
|
|
|
|
|