AddEventListenerOptions-signal.any.html

FAILExpected4 of 11 subtests pass356 ms

Details

Test
/dom/events/AddEventListenerOptions-signal.any.html
Harness
OK

Subtests

StatusSubtestMessage
FAILPassing an AbortSignal to addEventListener options should allow removing a listener
assert_equals: Aborting on the controller removes the listener expected 2 but got 3
assert_equals: Aborting on the controller removes the listener expected 2 but got 3
PASSPassing an AbortSignal to addEventListener does not prevent removeEventListener
FAILPassing an AbortSignal to addEventListener works with the once flag
assert_equals: The listener was still removed expected 0 but got 1
assert_equals: The listener was still removed expected 0 but got 1
PASSRemoving a once listener works with a passed signal
FAILPassing an AbortSignal to multiple listeners
assert_equals: The listener was still removed expected 0 but got 2
assert_equals: The listener was still removed expected 0 but got 2
FAILPassing an AbortSignal to addEventListener works with the capture flag
assert_equals: The listener was still removed expected 0 but got 1
assert_equals: The listener was still removed expected 0 but got 1
FAILAborting from a listener does not call future listeners
assert_equals: The listener was still removed expected 0 but got 1
assert_equals: The listener was still removed expected 0 but got 1
PASSAdding then aborting a listener in another listener does not call it
PASSAborting from a nested listener should remove it
FAILPassing null as the signal should throw
assert_throws_js: function "() => { et.addEventListener("foo", () => {}, { signal: null }); }" did not throw
assert_throws_js: function "() => { et.addEventListener("foo", () => {}, { signal: null }); }" did not throw
FAILPassing null as the signal should throw (listener is also null)
assert_throws_js: function "() => { et.addEventListener("foo", null, { signal: null }); }" did not throw
assert_throws_js: function "() => { et.addEventListener("foo", null, { signal: null }); }" did not throw