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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-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 new XMLHttpRequest().addEventListener("foo") is undefined 6 PASS new XMLHttpRequest().addEventListener("foo") threw exception TypeError: Fai led to execute 'addEventListener' on 'EventTarget': 2 arguments required, but on ly 1 present..
7 PASS new XMLHttpRequest().removeEventListener("bar") is undefined 7 PASS new XMLHttpRequest().removeEventListener("bar") threw exception TypeError: Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 present..
8 PASS new XMLHttpRequest().addEventListener() is undefined 8 PASS new XMLHttpRequest().addEventListener() threw exception TypeError: Failed t o execute 'addEventListener' on 'EventTarget': 2 arguments required, but only 0 present..
9 PASS new XMLHttpRequest().removeEventListener() is undefined 9 PASS new XMLHttpRequest().removeEventListener() threw exception TypeError: Faile d to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but o nly 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