1 EventTarget.addEventListener and EventTarget.removeEventLister should throw on invalid arguments.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 void addEventListener(DOMString type, EventListener listener, optional boolean useCapture)
8 PASS internals.isUseCounted(document, AddEventListenerNoArguments) is false
9 PASS document.addEventListener() is undefined
10 PASS internals.isUseCounted(document, AddEventListenerNoArguments) is true
11 PASS internals.isUseCounted(document, AddEventListenerOneArgument) is false
12 PASS document.addEventListener("foo") is undefined
13 PASS internals.isUseCounted(document, AddEventListenerOneArgument) is true
14 PASS document.addEventListener("foo", listener) did not throw exception.
15 PASS document.addEventListener("", listener) did not throw exception.
16 PASS document.addEventListener("", function(){}) did not throw exception.
17 PASS document.addEventListener("bar", listener, false) did not throw exception.
18 PASS document.addEventListener("bar", listener, true) did not throw exception.
19 PASS document.addEventListener(null) is undefined
20 PASS document.addEventListener(null, listener) did not throw exception.
21 PASS document.addEventListener("foo", null) is undefined
22 PASS document.addEventListener("zork", listener, null) did not throw exception.
23 PASS document.addEventListener(undefined) is undefined
24 PASS document.addEventListener(undefined, listener) is undefined
25 PASS document.addEventListener("foo", undefined) is undefined
26 PASS document.addEventListener("zork", listener, undefined) did not throw exception.
29 void removeEventListener(DOMString type, EventListener listener, optional boolean useCapture)
30 PASS internals.isUseCounted(document, RemoveEventListenerNoArguments) is false
31 PASS document.removeEventListener() is undefined
32 PASS internals.isUseCounted(document, RemoveEventListenerNoArguments) is true
33 PASS internals.isUseCounted(document, RemoveEventListenerOneArgument) is false
34 PASS document.removeEventListener("foo") is undefined
35 PASS internals.isUseCounted(document, RemoveEventListenerOneArgument) is true
36 PASS document.removeEventListener("foo", listener) did not throw exception.
37 PASS document.removeEventListener("foo", listener, true) did not throw exception.
38 PASS document.removeEventListener("bar", listener, false) did not throw exception.
39 PASS document.removeEventListener("bar", listener, false) did not throw exception.
40 PASS document.removeEventListener("bar", listener, true) did not throw exception.
41 PASS document.removeEventListener(null) is undefined
42 PASS document.removeEventListener(null, listener) did not throw exception.
43 PASS document.removeEventListener("foo", null) is undefined
44 PASS document.removeEventListener("zork", listener, null) did not throw exception.
45 PASS document.removeEventListener(undefined) is undefined
46 PASS document.removeEventListener(undefined, listener) is undefined
47 PASS document.removeEventListener("foo", undefined) is undefined
48 PASS document.removeEventListener("zork", listener, undefined) did not throw exception.
49 PASS successfullyParsed is true