Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / popup-menu-ax.html
blobba3498438459892f08f8e94c003bad8a41828c40
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="../../forms/resources/picker-common.js"></script>
6 <p id="description"></p>
7 <div id="console"></div>
8 <select id="menu">
9 <option>foo</option>
10 <option selected>bar</option>
11 <option>qux</option>
12 <option>baz</option>
13 </select>
15 <script>
16 description('Tests if typing an arrow key dispatches a |MenuListItemSelected| a11y event.');
18 window.accessibilityController.setNotificationListener(function(axnode, type) {
19 if (type == 'MenuListItemSelected') {
20 testPassed('Received MenuListItemSelected');
21 finishJSTest();
23 });
24 var menu = document.getElementById('menu');
25 openPicker(menu, test1, function () {
26 testFailed('picker didn\'t open')
27 finishJSTest();
28 });
30 function test1() {
31 eventSender.keyDown('downArrow');
34 </script>
35 </body>
36 </html>