OLD | NEW |
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
useCapture) |
8 PASS internals.isUseCounted(document, AddEventListenerNoArguments) is false | 8 PASS document.addEventListener() threw exception TypeError: Failed to execute 'a
ddEventListener' on 'EventTarget': 2 arguments required, but only 0 present.. |
9 PASS document.addEventListener() is undefined | 9 PASS document.addEventListener("foo") threw exception TypeError: Failed to execu
te 'addEventListener' on 'EventTarget': 2 arguments required, but only 1 present
.. |
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. | 10 PASS document.addEventListener("foo", listener) did not throw exception. |
15 PASS document.addEventListener("", listener) did not throw exception. | 11 PASS document.addEventListener("", listener) did not throw exception. |
16 PASS document.addEventListener("", function(){}) did not throw exception. | 12 PASS document.addEventListener("", function(){}) did not throw exception. |
17 PASS document.addEventListener("bar", listener, false) did not throw exception. | 13 PASS document.addEventListener("bar", listener, false) did not throw exception. |
18 PASS document.addEventListener("bar", listener, true) did not throw exception. | 14 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. | 15 PASS document.addEventListener(null, listener) did not throw exception. |
21 PASS document.addEventListener("foo", null) is undefined | 16 PASS document.addEventListener("foo", null) did not throw exception. |
22 PASS document.addEventListener("zork", listener, null) did not throw exception. | 17 PASS document.addEventListener("zork", listener, null) did not throw exception. |
23 PASS document.addEventListener(undefined) is undefined | 18 PASS document.addEventListener(undefined, listener) did not throw exception. |
24 PASS document.addEventListener(undefined, listener) is undefined | 19 PASS document.addEventListener("foo", undefined) did not throw exception. |
25 PASS document.addEventListener("foo", undefined) is undefined | |
26 PASS document.addEventListener("zork", listener, undefined) did not throw except
ion. | 20 PASS document.addEventListener("zork", listener, undefined) did not throw except
ion. |
27 | 21 |
28 Signature: | 22 Signature: |
29 void removeEventListener(DOMString type, EventListener listener, optional boolea
n useCapture) | 23 void removeEventListener(DOMString type, EventListener? listener, optional boole
an useCapture) |
30 PASS internals.isUseCounted(document, RemoveEventListenerNoArguments) is false | 24 PASS document.removeEventListener() threw exception TypeError: Failed to execute
'removeEventListener' on 'EventTarget': 2 arguments required, but only 0 presen
t.. |
31 PASS document.removeEventListener() is undefined | 25 PASS document.removeEventListener("foo") threw exception TypeError: Failed to ex
ecute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 p
resent.. |
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. | 26 PASS document.removeEventListener("foo", listener) did not throw exception. |
37 PASS document.removeEventListener("foo", listener, true) did not throw exception
. | 27 PASS document.removeEventListener("foo", listener, true) did not throw exception
. |
38 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. | 28 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. |
39 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. | 29 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. |
40 PASS document.removeEventListener("bar", listener, true) did not throw exception
. | 30 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. | 31 PASS document.removeEventListener(null, listener) did not throw exception. |
43 PASS document.removeEventListener("foo", null) is undefined | 32 PASS document.removeEventListener("foo", null) did not throw exception. |
44 PASS document.removeEventListener("zork", listener, null) did not throw exceptio
n. | 33 PASS document.removeEventListener("zork", listener, null) did not throw exceptio
n. |
45 PASS document.removeEventListener(undefined) is undefined | 34 PASS document.removeEventListener(undefined, listener) did not throw exception. |
46 PASS document.removeEventListener(undefined, listener) is undefined | 35 PASS document.removeEventListener("foo", undefined) did not throw exception. |
47 PASS document.removeEventListener("foo", undefined) is undefined | |
48 PASS document.removeEventListener("zork", listener, undefined) did not throw exc
eption. | 36 PASS document.removeEventListener("zork", listener, undefined) did not throw exc
eption. |
49 PASS successfullyParsed is true | 37 PASS successfullyParsed is true |
50 | 38 |
51 TEST COMPLETE | 39 TEST COMPLETE |
52 | 40 |
OLD | NEW |