Index: LayoutTests/fast/events/relatedevent.html |
diff --git a/LayoutTests/fast/events/relatedevent.html b/LayoutTests/fast/events/relatedevent.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..32229d719bd697db2ca0285957cbf8f00c658709 |
--- /dev/null |
+++ b/LayoutTests/fast/events/relatedevent.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../resources/js-test.js"></script> |
+</head> |
+<script> |
+ |
+description("Tests to confirm behavior of updating IDL attributes of RelatedEvent."); |
+ |
+var relatedEvent = document.createEvent("RelatedEvent"); |
+ |
+// We should not be able to update readonly attributes. |
+relatedEvent.bubbles = true; |
+relatedEvent.cancelable = true; |
+relatedEvent.relatedTarget = document; |
+ |
+shouldBeFalse("relatedEvent.bubbles"); |
+shouldBeFalse("relatedEvent.cancelable"); |
+shouldBeNull("relatedEvent.relatedTarget"); |
+</script> |
+</html> |