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

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

Issue 1461993002: Make addEventListener/removeEventListener arguments non-optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop the use counters Created 5 years, 1 month 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/dom/node-legacy-event-listener.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/node-legacy-event-listener.html b/third_party/WebKit/LayoutTests/fast/dom/node-legacy-event-listener.html
index a5b6eaf9a370100b22e62cdeb8ca0a51f37acb0e..66867053f8808b4926f81043b05a131b3fb0c633 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/node-legacy-event-listener.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/node-legacy-event-listener.html
@@ -7,11 +7,11 @@
<script>
description("Test addEventListener() and removeEventListener() fail silently if arguments are missing.");
-shouldBe('document.addEventListener("foo")', 'undefined');
-shouldBe('document.removeEventListener("bar")', 'undefined');
+shouldThrow('document.addEventListener("foo")');
+shouldThrow('document.removeEventListener("bar")');
-shouldBe('document.addEventListener()', 'undefined');
-shouldBe('document.removeEventListener()', 'undefined');
+shouldThrow('document.addEventListener()');
+shouldThrow('document.removeEventListener()');
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698