blob: e9e84bfad1e6f769262cb3b53ca5c201cc77aa38 (
plain)
1
2
3
4
5
6
7
8
9
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");
|