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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/node-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 document.addEventListener("foo") is undefined 6 PASS document.addEventListener("foo") threw exception TypeError: Failed to execu te 'addEventListener' on 'EventTarget': 2 arguments required, but only 1 present ..
7 PASS document.removeEventListener("bar") is undefined 7 PASS document.removeEventListener("bar") threw exception TypeError: Failed to ex ecute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 p resent..
8 PASS document.addEventListener() is undefined 8 PASS document.addEventListener() threw exception TypeError: Failed to execute 'a ddEventListener' on 'EventTarget': 2 arguments required, but only 0 present..
9 PASS document.removeEventListener() is undefined 9 PASS document.removeEventListener() threw exception TypeError: Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 0 presen t..
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