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

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

Issue 443053002: Add support for RelatedEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Done Created 6 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: 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>

Powered by Google App Engine
This is Rietveld 408576698