Skip to content

Commit

Permalink
DOM: do initEvent() before a returnValue test
Browse files Browse the repository at this point in the history
  • Loading branch information
alphan102 authored and annevk committed Aug 23, 2018
1 parent b8a706e commit 8158699
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dom/events/Event-defaultPrevented.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
assert_equals(ev.defaultPrevented, true, "defaultPrevented");
}, "preventDefault() should change defaultPrevented if cancelable is true.");
test(function() {
ev.initEvent("foo", true, true);
assert_equals(ev.cancelable, true, "cancelable (before)");
ev.returnValue = false;
assert_equals(ev.cancelable, true, "cancelable (after)");
Expand Down

0 comments on commit 8158699

Please sign in to comment.