Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed Feb 19, 2024
1 parent 857a19c commit d643cf9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@
"invoke",
(event) => {
eventInvoker = event.invoker;
eventTarget = event.target;
called = true;
},
{ once: true },
);
invokerbutton.invokeTargetElement = svgInvokee;
await clickOn(invokerbutton);
assert_true(called, "event was called");
assert_true(eventInvoker == svgInvokee, "event invoker is set to right element");
}, "event dispatches if invoker is non-HTML Element");
assert_equals(eventInvoker, invokerbutton, "event.invoker is set to right element");
assert_equals(eventTarget, svgInvokee, "event.target is set to right element");
}, "event dispatches if invokee is non-HTML Element");
</script>

0 comments on commit d643cf9

Please sign in to comment.