OLD | NEW |
(Empty) | |
| 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> |
| 14 |
| 15 <script> |
| 16 description('Tests if typing an arrow key dispatches a |MenuListItemSelected| a1
1y event.'); |
| 17 |
| 18 window.accessibilityController.setNotificationListener(function(axnode, type) { |
| 19 if (type == 'MenuListItemSelected') { |
| 20 testPassed('Received MenuListItemSelected'); |
| 21 finishJSTest(); |
| 22 } |
| 23 }); |
| 24 var menu = document.getElementById('menu'); |
| 25 openPicker(menu, test1, function () { |
| 26 testFailed('picker didn\'t open') |
| 27 finishJSTest(); |
| 28 }); |
| 29 |
| 30 function test1() { |
| 31 eventSender.keyDown('downArrow'); |
| 32 } |
| 33 |
| 34 </script> |
| 35 </body> |
| 36 </html> |
OLD | NEW |