Skip to content

Commit

Permalink
HTML: assert ErrorEventInit defaults
Browse files Browse the repository at this point in the history
This accounts for the change in whatwg/html#7983 as well.
  • Loading branch information
annevk committed Jun 3, 2022
1 parent c316989 commit 3a331d2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
const eventWatcher = new EventWatcher(t, document, "error");
const promise = eventWatcher.wait_for("error").then(e => {
assert_equals(e.defaultPrevented, false);
assert_equals(e.message, "");
assert_equals(e.filename, "");
assert_equals(e.lineno, 0);
assert_equals(e.colno, 0);
assert_equals(e.error, undefined);
});

document.dispatchEvent(new ErrorEvent("error", { cancelable: true }));
Expand Down

0 comments on commit 3a331d2

Please sign in to comment.