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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.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
Index: third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html b/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
index 8b654e037a0f4a0840fe64a3332b301789357ac4..e58930e6b465fff73c8917603f60fc89bb66db1f 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html
@@ -26,8 +26,8 @@ async_test(function(t) {
.then(mock => {
mock_capabilities = mock.capabilities();
return new ImageCapture(stream.getVideoTracks()[0]);
- })
- .catch(error => {
+ },
+ error => {
assert_unreached("Error creating MockImageCapture: " + error);
})
.then(capturer => {
@@ -146,9 +146,9 @@ async_test(function(t) {
t.done();
})
.catch(error => {
- assert_unreached("Error during getPhotoCapabilities(): " + error);
+ assert_unreached("Error during getPhotoCapabilities(): " + error.message);
});
-}, 'exercises the retrieval of Capabilities on ImageCapture API construction');
+}, 'exercises ImageCapture.getPhotoCapabilities()');
</script>

Powered by Google App Engine
This is Rietveld 408576698