1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
content / test / data / accessibility / event / aria-combo-box-focus.html [blame]
<!--
This line is to unflake the test, but may not be necessary (crbug.com/c/791268):
@WIN-DENY:EVENT_OBJECT_LOCATIONCHANGE*
@WIN-DENY:EVENT_OBJECT_SHOW*
@WIN-DENY:EVENT_OBJECT_HIDE*
@UIA-WIN-DENY:StructureChanged/*
@UIA-WIN-DENY:Text_TextSelectionChanged*
-->
<!DOCTYPE html>
<html>
<body>
<input role="combobox" type="search" aria-expanded="true" aria-haspopup="true"
aria-autocomplete="list" aria-activedescendant="option1" aria-owns="list">
<ul id="list" role="listbox">
<li id="option1" role="option">Apple</li>
<li id="option2" role="option">Orange</li>
<li id="option3" role="option">Banana</li>
</ul>
<button></button>
<script>
var go_passes = [
() => document.querySelector('input').focus(),
() => document.querySelector('button').focus(),
];
var current_pass = 0;
function go() {
go_passes[current_pass++].call();
return current_pass < go_passes.length;
}
</script>
</body>
</html>