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

content / test / data / accessibility / event / input-combobox.html [blame]

<!-- Simple combobox test html for end-to-end accessibility unit tests. -->
<html>
  <head>
    <script>
      function go() {
        document.getElementById('test-input').focus();
        document.getElementById('test-combobox').setAttribute('aria-expanded', 'true');
        document.getElementById('test-listbox').removeAttribute('hidden');
        document.getElementById('test-input').setAttribute('aria-controls', 'test-listbox');
      }
    </script>
  </head>
  <body>
    <div id="test-combobox" role="combobox" aria-expanded="false">
      <input id="test-input" type="text">
      <ul id="test-listbox" role="listbox" hidden>
        <li role="option">Chrome</li>
        <li role="option">Chromium</li>
        <li role="option">Clank</li>
      </ul>
    </div>
  </body>
</html>