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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/setoptions.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/setoptions.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/setoptions.html b/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
index f33ad649c044dfb6f59de052de21958a81caacc0..7d04b0b9653683226ee58bac85d029b155828823 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/setoptions.html
@@ -43,8 +43,8 @@ async_test(function(t) {
.then(mock => {
theMock = mock;
return new ImageCapture(stream.getVideoTracks()[0]);
- })
- .catch(error => {
+ },
+ error => {
assert_unreached("Error creating MockImageCapture: " + error);
})
.then(capturer => {
@@ -109,8 +109,8 @@ async_test(function(t) {
t.done();
})
.catch(error => {
- assert_unreached("Error during setOptions(): " + error);
+ assert_unreached("Error during setOptions(): " + error.message);
});
-}, 'exercises the ImageCapture API setOptions()');
+}, 'exercises ImageCapture.setOptions(options)');
</script>

Powered by Google App Engine
This is Rietveld 408576698