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

Unified Diff: LayoutTests/http/tests/dom/resources/promise-rejection-events.js

Issue 1212773003: Also send the "reason" for rejectionhandled events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: LayoutTests/http/tests/dom/resources/promise-rejection-events.js
diff --git a/LayoutTests/http/tests/dom/resources/promise-rejection-events.js b/LayoutTests/http/tests/dom/resources/promise-rejection-events.js
index 1d69e2078fbb6ee2100197dbe3fb7de393d5e711..8c1555588ae4e1d7c0c84647d32ecdd92e118744 100644
--- a/LayoutTests/http/tests/dom/resources/promise-rejection-events.js
+++ b/LayoutTests/http/tests/dom/resources/promise-rejection-events.js
@@ -490,7 +490,7 @@ async_test(function(t) {
assert_array_equals(unhandledPromises, [p]);
assert_array_equals(unhandledReasons, [e]);
assert_equals(ev.promise, p);
- assert_equals(ev.reason, null);
+ assert_equals(ev.reason, e);
});
}
};

Powered by Google App Engine
This is Rietveld 408576698