| 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 u
seCapture) |
| 8 PASS internals.isUseCounted(document, AddEventListenerNoArguments) is false |
| 8 PASS document.addEventListener() is undefined | 9 PASS document.addEventListener() is undefined |
| 10 PASS internals.isUseCounted(document, AddEventListenerNoArguments) is true |
| 11 PASS internals.isUseCounted(document, AddEventListenerOneArgument) is false |
| 9 PASS document.addEventListener("foo") is undefined | 12 PASS document.addEventListener("foo") is undefined |
| 13 PASS internals.isUseCounted(document, AddEventListenerOneArgument) is true |
| 10 PASS document.addEventListener("foo", listener) did not throw exception. | 14 PASS document.addEventListener("foo", listener) did not throw exception. |
| 11 PASS document.addEventListener("", listener) did not throw exception. | 15 PASS document.addEventListener("", listener) did not throw exception. |
| 12 PASS document.addEventListener("", function(){}) did not throw exception. | 16 PASS document.addEventListener("", function(){}) did not throw exception. |
| 13 PASS document.addEventListener("bar", listener, false) did not throw exception. | 17 PASS document.addEventListener("bar", listener, false) did not throw exception. |
| 14 PASS document.addEventListener("bar", listener, true) did not throw exception. | 18 PASS document.addEventListener("bar", listener, true) did not throw exception. |
| 15 PASS document.addEventListener(null) is undefined | 19 PASS document.addEventListener(null) is undefined |
| 16 PASS document.addEventListener(null, listener) did not throw exception. | 20 PASS document.addEventListener(null, listener) did not throw exception. |
| 17 PASS document.addEventListener("foo", null) is undefined | 21 PASS document.addEventListener("foo", null) is undefined |
| 18 PASS document.addEventListener("zork", listener, null) did not throw exception. | 22 PASS document.addEventListener("zork", listener, null) did not throw exception. |
| 19 PASS document.addEventListener(undefined) is undefined | 23 PASS document.addEventListener(undefined) is undefined |
| 20 PASS document.addEventListener(undefined, listener) is undefined | 24 PASS document.addEventListener(undefined, listener) is undefined |
| 21 PASS document.addEventListener("foo", undefined) is undefined | 25 PASS document.addEventListener("foo", undefined) is undefined |
| 22 PASS document.addEventListener("zork", listener, undefined) did not throw except
ion. | 26 PASS document.addEventListener("zork", listener, undefined) did not throw except
ion. |
| 23 | 27 |
| 24 Signature: | 28 Signature: |
| 25 void removeEventListener(DOMString type, EventListener listener, optional boolea
n useCapture) | 29 void removeEventListener(DOMString type, EventListener listener, optional boolea
n useCapture) |
| 30 PASS internals.isUseCounted(document, RemoveEventListenerNoArguments) is false |
| 26 PASS document.removeEventListener() is undefined | 31 PASS document.removeEventListener() is undefined |
| 32 PASS internals.isUseCounted(document, RemoveEventListenerNoArguments) is true |
| 33 PASS internals.isUseCounted(document, RemoveEventListenerOneArgument) is false |
| 27 PASS document.removeEventListener("foo") is undefined | 34 PASS document.removeEventListener("foo") is undefined |
| 35 PASS internals.isUseCounted(document, RemoveEventListenerOneArgument) is true |
| 28 PASS document.removeEventListener("foo", listener) did not throw exception. | 36 PASS document.removeEventListener("foo", listener) did not throw exception. |
| 29 PASS document.removeEventListener("foo", listener, true) did not throw exception
. | 37 PASS document.removeEventListener("foo", listener, true) did not throw exception
. |
| 30 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. | 38 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. |
| 31 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. | 39 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. |
| 32 PASS document.removeEventListener("bar", listener, true) did not throw exception
. | 40 PASS document.removeEventListener("bar", listener, true) did not throw exception
. |
| 33 PASS document.removeEventListener(null) is undefined | 41 PASS document.removeEventListener(null) is undefined |
| 34 PASS document.removeEventListener(null, listener) did not throw exception. | 42 PASS document.removeEventListener(null, listener) did not throw exception. |
| 35 PASS document.removeEventListener("foo", null) is undefined | 43 PASS document.removeEventListener("foo", null) is undefined |
| 36 PASS document.removeEventListener("zork", listener, null) did not throw exceptio
n. | 44 PASS document.removeEventListener("zork", listener, null) did not throw exceptio
n. |
| 37 PASS document.removeEventListener(undefined) is undefined | 45 PASS document.removeEventListener(undefined) is undefined |
| 38 PASS document.removeEventListener(undefined, listener) is undefined | 46 PASS document.removeEventListener(undefined, listener) is undefined |
| 39 PASS document.removeEventListener("foo", undefined) is undefined | 47 PASS document.removeEventListener("foo", undefined) is undefined |
| 40 PASS document.removeEventListener("zork", listener, undefined) did not throw exc
eption. | 48 PASS document.removeEventListener("zork", listener, undefined) did not throw exc
eption. |
| 41 PASS successfullyParsed is true | 49 PASS successfullyParsed is true |
| 42 | 50 |
| 43 TEST COMPLETE | 51 TEST COMPLETE |
| 44 | 52 |
| OLD | NEW |