Index: LayoutTests/fast/events/event-listener-arguments-expected.txt |
diff --git a/LayoutTests/fast/events/event-listener-arguments-expected.txt b/LayoutTests/fast/events/event-listener-arguments-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..780b2057f95dc88e37cbabd18fdc35299b662e4a |
--- /dev/null |
+++ b/LayoutTests/fast/events/event-listener-arguments-expected.txt |
@@ -0,0 +1,28 @@ |
+EventTarget.addEventListener and EventTarget.removeEventLister should throw on invalid arguments. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+Signature: |
+void addEventListener(DOMString type, EventListener listener, optional boolean useCapture) |
+PASS document.addEventListener() threw exception TypeError: Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only 0 present.. |
+PASS document.addEventListener("foo") threw exception TypeError: Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only 1 present.. |
+PASS document.addEventListener("foo", listener) did not throw exception. |
+PASS document.addEventListener("", listener) did not throw exception. |
+PASS document.addEventListener("", function(){}) did not throw exception. |
+PASS document.addEventListener("bar", listener, false) did not throw exception. |
+PASS document.addEventListener("bar", listener, true) did not throw exception. |
+ |
+Signature: |
+void removeEventListener(DOMString type, EventListener listener, optional boolean useCapture) |
+PASS document.removeEventListener() threw exception TypeError: Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 0 present.. |
+PASS document.removeEventListener("foo") threw exception TypeError: Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 present.. |
+PASS document.removeEventListener("foo", listener) did not throw exception. |
+PASS document.removeEventListener("foo", listener, true) did not throw exception. |
+PASS document.removeEventListener("bar", listener, false) did not throw exception. |
+PASS document.removeEventListener("bar", listener, false) did not throw exception. |
+PASS document.addEventListener("bar", listener, true) did not throw exception. |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |