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

Unified Diff: LayoutTests/fast/js/function-length.html

Issue 329053002: Throw TypeError when addEventListener or removeEventListener are called without enough arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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/js/function-length.html
diff --git a/LayoutTests/fast/js/function-length.html b/LayoutTests/fast/js/function-length.html
index 9109b37856d9cf102ccd2ea12d8c747586b02dda..1aae8353a5f822883dc8f310cec6b569ea4abd49 100644
--- a/LayoutTests/fast/js/function-length.html
+++ b/LayoutTests/fast/js/function-length.html
@@ -12,9 +12,7 @@ shouldBe('window.open.length', '2');
shouldBe('window.showModalDialog.length', '1');
shouldBe('window.setTimeout.length', '1');
shouldBe('window.clearTimeout.length', '0');
-// addEventListener.length should be 2, but legacy content calls with 0 or 1
-// argument. See http://crbug.com/249598
-shouldBe('window.addEventListener.length', '0');
+shouldBe('window.addEventListener.length', '2');
shouldBe('window.postMessage.length', '2');
shouldBe('window.dispatchEvent.length', '1');
shouldBe('window.openDatabase.length', '4');
« no previous file with comments | « LayoutTests/fast/dom/node-legacy-event-listener-expected.txt ('k') | LayoutTests/fast/js/function-length-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698