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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/takephoto.html

Issue 2762883002: Image Capture layouttests: correct mockImageCaptureReady error callback (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/imagecapture/setoptions.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/imagecapture/takephoto.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/takephoto.html b/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
index bbac020c9995bcc189a149ad6a1cbfdbcff6d330..21950b472cc884692d3195bd714686ff9a3bc7cb 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
@@ -21,8 +21,8 @@ async_test(function(t) {
mockImageCaptureReady
.then(mock => {
return new ImageCapture(stream.getVideoTracks()[0]);
- })
- .catch(error => {
+ },
+ error => {
assert_unreached("Error creating MockImageCapture: " + error);
})
.then(capturer => {
@@ -35,8 +35,8 @@ async_test(function(t) {
t.done();
})
.catch(error => {
- assert_unreached("Error during takePhoto(): " + error);
+ assert_unreached("Error during takePhoto(): " + error.message);
});
-}, 'exercises the ImageCapture API takePhoto()');
+}, 'exercises ImageCapture.takePhoto()');
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/imagecapture/setoptions.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698