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

Unified Diff: LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html

Issue 1181353005: Return null when no promise/reason is given in PromiseRejectionEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates 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/fast/events/constructors/promise-rejection-event-constructor.html
diff --git a/LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html b/LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html
index f19d751c5fbdbe1a785570c03435131c3d33e0c8..33f3439a61801ba048b507986a3fe282db3d36c1 100644
--- a/LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html
+++ b/LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html
@@ -9,8 +9,8 @@ test(function() {
// No initializer is passed.
assert_equals(new PromiseRejectionEvent('eventType').bubbles, false);
assert_equals(new PromiseRejectionEvent('eventType').cancelable, false);
- assert_equals(new PromiseRejectionEvent('eventType').promise, undefined);
- assert_equals(new PromiseRejectionEvent('eventType').reason, undefined);
+ assert_equals(new PromiseRejectionEvent('eventType').promise, null);
+ assert_equals(new PromiseRejectionEvent('eventType').reason, null);
// bubbles is passed.
assert_equals(new PromiseRejectionEvent('eventType', { bubbles: false }).bubbles, false);

Powered by Google App Engine
This is Rietveld 408576698