AddEventListenerOptions-signal.any.html
Details
- Test
/dom/events/AddEventListenerOptions-signal.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | Passing an AbortSignal to addEventListener options should allow removing a listener assert_equals: Aborting on the controller removes the listener expected 2 but got 3 |
| PASS | Passing an AbortSignal to addEventListener does not prevent removeEventListener |
| FAIL | Passing an AbortSignal to addEventListener works with the once flag assert_equals: The listener was still removed expected 0 but got 1 |
| PASS | Removing a once listener works with a passed signal |
| FAIL | Passing an AbortSignal to multiple listeners assert_equals: The listener was still removed expected 0 but got 2 |
| FAIL | Passing an AbortSignal to addEventListener works with the capture flag assert_equals: The listener was still removed expected 0 but got 1 |
| FAIL | Aborting from a listener does not call future listeners assert_equals: The listener was still removed expected 0 but got 1 |
| PASS | Adding then aborting a listener in another listener does not call it |
| PASS | Aborting from a nested listener should remove it |
| FAIL | Passing null as the signal should throw assert_throws_js: function "() => { et.addEventListener("foo", () => {}, { signal: null }); }" did not throw |
| FAIL | Passing null as the signal should throw (listener is also null) assert_throws_js: function "() => { et.addEventListener("foo", null, { signal: null }); }" did not throw |