Files
Kmake/test/fixtures/wpt/dom/events/legacy-pre-activation-behavior.window.js
2026-05-26 23:36:42 -07:00

11 lines
433 B
JavaScript

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");