1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

content / test / data / accessibility / html / select-follows-focus.html [blame]

<!--
@BLINK-ALLOW:selectedFromFocus*
@MAC-ALLOW:AXSelected=*
@WAIT-FOR:Done
-->
<html>
<body>
  <div role="tablist">
    <button role="tab" id="tab1">tab1</button>
    <button role="tab" aria-selected="true">tab2</button>
    <button role="tab">tab3</button>
  </div>
</body>

<script>
  // Setting focus on "tab1" will result it being selected.
  document.getElementById("tab1").focus();
  document.body.appendChild(document.createTextNode("Done"));
</script>

</html>