Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/events/legacy-pre-activation-behavior.window.html - WPT Dashboard Interop Dashboard
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");