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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/relatedevent.html

Issue 2216593002: Drop document.createEvent support for things still behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@createEvent
Patch Set: fix LayoutTests Created 4 years, 4 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/events/relatedevent.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/relatedevent.html b/third_party/WebKit/LayoutTests/fast/events/relatedevent.html
index 32229d719bd697db2ca0285957cbf8f00c658709..b746f7499a692608a4bef81bf2928fb6256ba7ae 100644
--- a/third_party/WebKit/LayoutTests/fast/events/relatedevent.html
+++ b/third_party/WebKit/LayoutTests/fast/events/relatedevent.html
@@ -7,13 +7,15 @@
description("Tests to confirm behavior of updating IDL attributes of RelatedEvent.");
-var relatedEvent = document.createEvent("RelatedEvent");
+var relatedEvent = new RelatedEvent("foo");
-// We should not be able to update readonly attributes.
+// We should not be able to update readonly attributes.
+relatedEvent.type = "bar";
relatedEvent.bubbles = true;
relatedEvent.cancelable = true;
relatedEvent.relatedTarget = document;
+shouldBeEqualToString("relatedEvent.type", "foo");
shouldBeFalse("relatedEvent.bubbles");
shouldBeFalse("relatedEvent.cancelable");
shouldBeNull("relatedEvent.relatedTarget");

Powered by Google App Engine
This is Rietveld 408576698