Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html

Issue 1952463002: Media Stream Image Capture (4): wire takePhoto and implement in FakeVCDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tommi@ and mlamouri@ comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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().');
« no previous file with comments | « media/capture/video/video_capture_device.cc ('k') | third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698