| 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); | |
| 26 | |
| 27 function test1() { | |
| 28 eventSender.keyDown('downArrow'); | |
| 29 } | |
| 30 | |
| 31 </script> | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |