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

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

Issue 203603005: Explicitly mark first 2 args of addEventListener/removeEventListener as optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test result (addEventListener.length now 0, not 2) Created 6 years, 9 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 EventTarget.addEventListener and EventTarget.removeEventLister should throw on i nvalid arguments. 1 EventTarget.addEventListener and EventTarget.removeEventLister should throw on i nvalid arguments.
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 Signature: 6 Signature:
7 void addEventListener(DOMString type, EventListener listener, optional boolean u seCapture) 7 void addEventListener(DOMString type, EventListener listener, optional boolean u seCapture)
8 PASS document.addEventListener() is undefined 8 PASS document.addEventListener() is undefined
9 PASS document.addEventListener("foo") is undefined 9 PASS document.addEventListener("foo") is undefined
10 PASS document.addEventListener("foo", listener) did not throw exception. 10 PASS document.addEventListener("foo", listener) did not throw exception.
11 PASS document.addEventListener("", listener) did not throw exception. 11 PASS document.addEventListener("", listener) did not throw exception.
12 PASS document.addEventListener("", function(){}) did not throw exception. 12 PASS document.addEventListener("", function(){}) did not throw exception.
13 PASS document.addEventListener("bar", listener, false) did not throw exception. 13 PASS document.addEventListener("bar", listener, false) did not throw exception.
14 PASS document.addEventListener("bar", listener, true) did not throw exception. 14 PASS document.addEventListener("bar", listener, true) did not throw exception.
15 PASS document.addEventListener(null) is undefined
15 PASS document.addEventListener(null, listener) did not throw exception. 16 PASS document.addEventListener(null, listener) did not throw exception.
17 PASS document.addEventListener("foo", null) is undefined
16 PASS document.addEventListener("zork", listener, null) did not throw exception. 18 PASS document.addEventListener("zork", listener, null) did not throw exception.
19 PASS document.addEventListener(undefined) is undefined
20 PASS document.addEventListener(undefined, listener) is undefined
21 PASS document.addEventListener("foo", undefined) is undefined
17 PASS document.addEventListener("zork", listener, undefined) did not throw except ion. 22 PASS document.addEventListener("zork", listener, undefined) did not throw except ion.
18 23
19 Signature: 24 Signature:
20 void removeEventListener(DOMString type, EventListener listener, optional boolea n useCapture) 25 void removeEventListener(DOMString type, EventListener listener, optional boolea n useCapture)
21 PASS document.removeEventListener() is undefined 26 PASS document.removeEventListener() is undefined
22 PASS document.removeEventListener("foo") is undefined 27 PASS document.removeEventListener("foo") is undefined
23 PASS document.removeEventListener("foo", listener) did not throw exception. 28 PASS document.removeEventListener("foo", listener) did not throw exception.
24 PASS document.removeEventListener("foo", listener, true) did not throw exception . 29 PASS document.removeEventListener("foo", listener, true) did not throw exception .
25 PASS document.removeEventListener("bar", listener, false) did not throw exceptio n. 30 PASS document.removeEventListener("bar", listener, false) did not throw exceptio n.
26 PASS document.removeEventListener("bar", listener, false) did not throw exceptio n. 31 PASS document.removeEventListener("bar", listener, false) did not throw exceptio n.
27 PASS document.addEventListener("bar", listener, true) did not throw exception. 32 PASS document.removeEventListener("bar", listener, true) did not throw exception .
33 PASS document.removeEventListener(null) is undefined
28 PASS document.removeEventListener(null, listener) did not throw exception. 34 PASS document.removeEventListener(null, listener) did not throw exception.
35 PASS document.removeEventListener("foo", null) is undefined
29 PASS document.removeEventListener("zork", listener, null) did not throw exceptio n. 36 PASS document.removeEventListener("zork", listener, null) did not throw exceptio n.
37 PASS document.removeEventListener(undefined) is undefined
38 PASS document.removeEventListener(undefined, listener) is undefined
39 PASS document.removeEventListener("foo", undefined) is undefined
30 PASS document.removeEventListener("zork", listener, undefined) did not throw exc eption. 40 PASS document.removeEventListener("zork", listener, undefined) did not throw exc eption.
31 PASS successfullyParsed is true 41 PASS successfullyParsed is true
32 42
33 TEST COMPLETE 43 TEST COMPLETE
34 44
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/event-target-arguments.html ('k') | LayoutTests/fast/js/function-length.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698