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

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

Issue 1130763006: IDL: Add any support to IDL dictionary and use it in CustomEventInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/custom-event-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/constructors/custom-event-constructor.html
diff --git a/LayoutTests/fast/events/constructors/custom-event-constructor.html b/LayoutTests/fast/events/constructors/custom-event-constructor.html
index a75669f6c27e67595b889b868ec5488981302da9..4e2e69448b28805718149f28909aea995e8126d6 100644
--- a/LayoutTests/fast/events/constructors/custom-event-constructor.html
+++ b/LayoutTests/fast/events/constructors/custom-event-constructor.html
@@ -31,8 +31,9 @@ shouldBe("new CustomEvent('eventType', { detail: detailObject }).detail", "detai
// Detail is a DOM object
shouldBe("new CustomEvent('eventType', { detail: document }).detail", "document");
-// Detail is undefined.
-shouldBe("new CustomEvent('eventType', { detail: undefined }).detail", "undefined");
+// Detail is undefined. Since the default value of detail is null, it should
+// result in "null".
+shouldBe("new CustomEvent('eventType', { detail: undefined }).detail", "null");
// Detail is null.
shouldBe("new CustomEvent('eventType', { detail: null }).detail", "null");
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/custom-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698