diff options
author | Colin Ihrig <cjihrig@gmail.com> | 2022-05-16 10:46:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 10:46:39 -0400 |
commit | 1fa75f75c90b744d63e451519311f27ba55c21d7 (patch) | |
tree | eb51197993a50948bba422b219ea781455c10d53 /tools | |
parent | 8af81d98a6d673fde3a5c2acacf6ad00c53b9223 (diff) |
fix(ext/web): throw if listener and signal are null (#14601)
This commit fixes a failing WPT test by making EventTarget's
addEventListener() method throw if both the listener and the
signal option are null.
Fixes: https://github.com/denoland/deno/issues/14593
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wpt/expectation.json | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 2fa5f6e68..018b3ebd3 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -902,28 +902,16 @@ "event.any.worker.html": true }, "events": { - "AddEventListenerOptions-once.any.html": [ - "Once listener should be added / removed like normal listeners" - ], - "AddEventListenerOptions-once.any.worker.html": [ - "Once listener should be added / removed like normal listeners" - ], + "AddEventListenerOptions-once.any.html": true, + "AddEventListenerOptions-once.any.worker.html": true, "AddEventListenerOptions-passive.any.html": [ - "Supports passive option on addEventListener only", - "returnValue should be ignored if-and-only-if the passive option is true", - "Equivalence of option values" + "returnValue should be ignored if-and-only-if the passive option is true" ], "AddEventListenerOptions-passive.any.worker.html": [ - "Supports passive option on addEventListener only", - "returnValue should be ignored if-and-only-if the passive option is true", - "Equivalence of option values" - ], - "AddEventListenerOptions-signal.any.html": [ - "Passing null as the signal should throw (listener is also null)" - ], - "AddEventListenerOptions-signal.any.worker.html": [ - "Passing null as the signal should throw (listener is also null)" + "returnValue should be ignored if-and-only-if the passive option is true" ], + "AddEventListenerOptions-signal.any.html": true, + "AddEventListenerOptions-signal.any.worker.html": true, "Event-isTrusted.any.html": true, "Event-isTrusted.any.worker.html": true, "EventTarget-add-remove-listener.any.html": true, @@ -4787,4 +4775,4 @@ "idlharness.https.any.worker.html": true, "idlharness-shadowrealm.window.html": false } -}
\ No newline at end of file +} |