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"); |