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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-createImageBitmap-invalid-blob-in-workers.js

Issue 1841313003: Reject promise with InvalidStateError instead of null in createImageBitmap(Blob) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/fast/canvas/resources/canvas-createImageBitmap-invalid-blob-in-workers.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-createImageBitmap-invalid-blob-in-workers.js b/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-createImageBitmap-invalid-blob-in-workers.js
index 4201ea66d69416484ab6b1ea5b841c717259849f..dbbe70f9658dc580b2efcb69a068c061d0346f7c 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-createImageBitmap-invalid-blob-in-workers.js
+++ b/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-createImageBitmap-invalid-blob-in-workers.js
@@ -8,8 +8,8 @@ self.addEventListener('message', function(e) {
createImageBitmap(e.data).then(function() {
testFailed('Promise fulfuilled.');
finishJSTest();
- }, function() {
- testPassed('Promise rejected.');
+ }, function(ex) {
+ testPassed('Promise rejected: ' + ex);
finishJSTest();
});
-});
+});

Powered by Google App Engine
This is Rietveld 408576698