xref: /third_party/node/test/fixtures/wpt/dom/events/legacy-pre-activation-behavior.window.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/wpt/dom/events/
11cb0ef41Sopenharmony_citest(t => {
21cb0ef41Sopenharmony_ci  const input = document.body.appendChild(document.createElement('input'));
31cb0ef41Sopenharmony_ci  input.type = "radio";
41cb0ef41Sopenharmony_ci  t.add_cleanup(() => input.remove());
51cb0ef41Sopenharmony_ci  const clickEvent = new MouseEvent('click', { button: 0, which: 1 });
61cb0ef41Sopenharmony_ci  input.addEventListener('change', t.step_func(() => {
71cb0ef41Sopenharmony_ci    assert_equals(clickEvent.eventPhase, Event.NONE);
81cb0ef41Sopenharmony_ci  }));
91cb0ef41Sopenharmony_ci  input.dispatchEvent(clickEvent);
101cb0ef41Sopenharmony_ci}, "Use NONE phase during legacy-pre-activation behavior");
11

Indexes created Thu Nov 07 10:32:03 CST 2024