Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/events/EventTarget-removeEventListener.any.html - WPT Dashboard Interop Dashboard
- /dom/events/EventTarget-removeEventListener.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=EventTarget.removeEventListener
// Step 1.
test(function() {
assert_equals(globalThis.removeEventListener("x", null, false), undefined);
assert_equals(globalThis.removeEventListener("x", null, true), undefined);
assert_equals(globalThis.removeEventListener("x", null), undefined);
}, "removing a null event listener should succeed");