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

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

Issue 17063016: Remove leak of objects between isolated worlds on custom events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed some test failures, fixed some nits, and generalized the new events test. Created 7 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/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 be5547d8f7e375736323ed189dd48870e67e2186..75d882f2597cd72d6b9c1649ee2a41bf1592eed7 100644
--- a/LayoutTests/fast/events/constructors/custom-event-constructor.html
+++ b/LayoutTests/fast/events/constructors/custom-event-constructor.html
@@ -31,6 +31,12 @@ 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 null.
+shouldBe("new CustomEvent('eventType', { detail: null }).detail", "null");
+
// Detail is a getter.
shouldBe("new CustomEvent('eventType', { get detail() { return true; } }).detail", "true");

Powered by Google App Engine
This is Rietveld 408576698