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

Unified Diff: LayoutTests/fast/dom/node-legacy-event-listener.html

Issue 331323012: Revert of Throw TypeError when addEventListener or removeEventListener are called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/dom/node-legacy-event-listener.html
diff --git a/LayoutTests/fast/dom/node-legacy-event-listener.html b/LayoutTests/fast/dom/node-legacy-event-listener.html
new file mode 100644
index 0000000000000000000000000000000000000000..a5b6eaf9a370100b22e62cdeb8ca0a51f37acb0e
--- /dev/null
+++ b/LayoutTests/fast/dom/node-legacy-event-listener.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("Test addEventListener() and removeEventListener() fail silently if arguments are missing.");
+
+shouldBe('document.addEventListener("foo")', 'undefined');
+shouldBe('document.removeEventListener("bar")', 'undefined');
+
+shouldBe('document.addEventListener()', 'undefined');
+shouldBe('document.removeEventListener()', 'undefined');
+</script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/dom/event-target-arguments-expected.txt ('k') | LayoutTests/fast/dom/node-legacy-event-listener-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698