OLD | NEW |
(Empty) | |
| 1 EventTarget.addEventListener and EventTarget.removeEventLister should throw on i
nvalid arguments. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Signature: |
| 7 void addEventListener(DOMString type, EventListener listener, optional boolean u
seCapture) |
| 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("foo") threw exception TypeError: Failed to execu
te 'addEventListener' on 'EventTarget': 2 arguments required, but only 1 present
.. |
| 10 PASS document.addEventListener("foo", listener) did not throw exception. |
| 11 PASS document.addEventListener("", listener) did not throw exception. |
| 12 PASS document.addEventListener("", function(){}) 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. |
| 15 |
| 16 Signature: |
| 17 void removeEventListener(DOMString type, EventListener listener, optional boolea
n useCapture) |
| 18 PASS document.removeEventListener() threw exception TypeError: Failed to execute
'removeEventListener' on 'EventTarget': 2 arguments required, but only 0 presen
t.. |
| 19 PASS document.removeEventListener("foo") threw exception TypeError: Failed to ex
ecute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 p
resent.. |
| 20 PASS document.removeEventListener("foo", listener) did not throw exception. |
| 21 PASS document.removeEventListener("foo", listener, true) did not throw exception
. |
| 22 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. |
| 23 PASS document.removeEventListener("bar", listener, false) did not throw exceptio
n. |
| 24 PASS document.addEventListener("bar", listener, true) did not throw exception. |
| 25 PASS successfullyParsed is true |
| 26 |
| 27 TEST COMPLETE |
| 28 |
OLD | NEW |