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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener-expected.txt

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 unified diff | Download patch
OLDNEW
1 Test addEventListener() and removeEventListener() fail silently if arguments are missing. 1 Test addEventListener() and removeEventListener() fail silently if arguments are missing.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS window.addEventListener("foo") is undefined 6 PASS window.addEventListener("foo") threw exception TypeError: Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only 1 present..
7 PASS window.removeEventListener("bar") is undefined 7 PASS window.removeEventListener("bar") threw exception TypeError: Failed to exec ute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 pre sent..
8 PASS window.addEventListener() is undefined 8 PASS window.addEventListener() threw exception TypeError: Failed to execute 'add EventListener' on 'EventTarget': 2 arguments required, but only 0 present..
9 PASS window.removeEventListener() is undefined 9 PASS window.removeEventListener() threw exception TypeError: Failed to execute ' removeEventListener' on 'EventTarget': 2 arguments required, but only 0 present. .
10 PASS successfullyParsed is true 10 PASS successfullyParsed is true
11 11
12 TEST COMPLETE 12 TEST COMPLETE
13 13
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698