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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener.html b/third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener.html
index 01b40fb6fee6f01c0fa657803bb3f1ec8b0383d0..978b35977235d8bed17d17eb98675fff9c0711aa 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener.html
@@ -7,11 +7,11 @@
<script>
description("Test addEventListener() and removeEventListener() fail silently if arguments are missing.");
-shouldBe('window.addEventListener("foo")', 'undefined');
-shouldBe('window.removeEventListener("bar")', 'undefined');
+shouldThrow('window.addEventListener("foo")');
+shouldThrow('window.removeEventListener("bar")');
-shouldBe('window.addEventListener()', 'undefined');
-shouldBe('window.removeEventListener()', 'undefined');
+shouldThrow('window.addEventListener()');
+shouldThrow('window.removeEventListener()');
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698