blob: ba3498438459892f08f8e94c003bad8a41828c40 (
plain)
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
34
35
36
|
<!DOCTYPE html>
<html>
<body>
<script src="../../../resources/js-test.js"></script>
<script src="../../forms/resources/picker-common.js"></script>
<p id="description"></p>
<div id="console"></div>
<select id="menu">
<option>foo</option>
<option selected>bar</option>
<option>qux</option>
<option>baz</option>
</select>
<script>
description('Tests if typing an arrow key dispatches a |MenuListItemSelected| a11y event.');
window.accessibilityController.setNotificationListener(function(axnode, type) {
if (type == 'MenuListItemSelected') {
testPassed('Received MenuListItemSelected');
finishJSTest();
}
});
var menu = document.getElementById('menu');
openPicker(menu, test1, function () {
testFailed('picker didn\'t open')
finishJSTest();
});
function test1() {
eventSender.keyDown('downArrow');
}
</script>
</body>
</html>
|