resources/testdriver-vendor.js"></script>

<script>
  async function activateMarker(idx) {
    await new test_driver.Actions()
      .pointerMove(5 + idx*25, 5)
      .pointerDown()
      .pointerUp()
      .send();
  }

  async function focusNext() {
    // https://w3c.github.io/webdriver/#keyboard-actions
    const kTab = '\uE004';

    await new test_driver.Actions()
      .keyDown(kTab)
      .keyUp(kTab)
      .send();
  }

  promise_test(async t => {
    await activateMarker(1);
    await focusNext();