ton id=button2 tabindex="0">Button2</button>
<button id=button3 tabindex="0">Button3</button>

<script>
promise_test(async t => {
  button1.focus();
  assert_equals(document.activeElement,button1);
  await sendTab();
  assert_equals(document.activeElement,button2,'Tab should move to button 2');
  await sendShiftTab();
  assert_equals(document.activeElement,button1,'Shift-Tab should move back to button 1');
}, "Test sendShiftTab");
</script>
