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

Side by Side Diff: LayoutTests/fast/dom/event-target-arguments-expected.txt

Issue 329223004: [DeprecateAs] if call addEventListener or removeEventListener without enough arguments Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix template condition 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 CONSOLE WARNING: Omitting either of the first two arguments of 'EventTarget.addE ventListener' or 'EventTarget.removeEventListener' is deprecated, as these are r equired (http://dom.spec.whatwg.org/#interface-eventtarget).
1 EventTarget.addEventListener and EventTarget.removeEventLister should throw on i nvalid arguments. 2 EventTarget.addEventListener and EventTarget.removeEventLister should throw on i nvalid arguments.
2 3
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 5
5 6
6 Signature: 7 Signature:
7 void addEventListener(DOMString type, EventListener listener, optional boolean u seCapture) 8 void addEventListener(DOMString type, EventListener listener, optional boolean u seCapture)
8 PASS document.addEventListener() is undefined 9 PASS document.addEventListener() is undefined
9 PASS document.addEventListener("foo") is undefined 10 PASS document.addEventListener("foo") is undefined
10 PASS document.addEventListener("foo", listener) did not throw exception. 11 PASS document.addEventListener("foo", listener) did not throw exception.
(...skipping 24 matching lines...) Expand all
35 PASS document.removeEventListener("foo", null) is undefined 36 PASS document.removeEventListener("foo", null) is undefined
36 PASS document.removeEventListener("zork", listener, null) did not throw exceptio n. 37 PASS document.removeEventListener("zork", listener, null) did not throw exceptio n.
37 PASS document.removeEventListener(undefined) is undefined 38 PASS document.removeEventListener(undefined) is undefined
38 PASS document.removeEventListener(undefined, listener) is undefined 39 PASS document.removeEventListener(undefined, listener) is undefined
39 PASS document.removeEventListener("foo", undefined) is undefined 40 PASS document.removeEventListener("foo", undefined) is undefined
40 PASS document.removeEventListener("zork", listener, undefined) did not throw exc eption. 41 PASS document.removeEventListener("zork", listener, undefined) did not throw exc eption.
41 PASS successfullyParsed is true 42 PASS successfullyParsed is true
42 43
43 TEST COMPLETE 44 TEST COMPLETE
44 45
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/event-target-arguments.html ('k') | LayoutTests/fast/dom/node-legacy-event-listener-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698