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> |