Skip to content

Commit

Permalink
Bug 1491847 [wpt PR 13030] - DOM: eventPhase during legacy-pre-activa…
Browse files Browse the repository at this point in the history
…tion behavior, a=testonly

Automatic update from web-platform-tests
DOM: eventPhase during legacy-pre-activation behavior

For whatwg/dom#686.
--

wpt-commits: 079928e6d608251333281d1a934f50d01ffeb901
wpt-pr: 13030
  • Loading branch information
annevk authored and jgraham committed Apr 1, 2019
1 parent 6e4da73 commit f73e8d6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test(t => {
const input = document.body.appendChild(document.createElement('input'));
input.type = "radio";
t.add_cleanup(() => input.remove());
const clickEvent = new MouseEvent('click', { button: 0, which: 1 });
input.addEventListener('change', t.step_func(() => {
assert_equals(clickEvent.eventPhase, Event.NONE);
}));
input.dispatchEvent(clickEvent);
}, "Use NONE phase during legacy-pre-activation behavior");

0 comments on commit f73e8d6

Please sign in to comment.