10 lines
433 B
JavaScript
10 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");
|