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 <script src="resources/calendar-picker-common.js"></script> |
| 7 <p id="description"></p> |
| 8 <div id="console"></div> |
| 9 <input type="date" id="date1" value="2000-01-02"> |
| 10 |
| 11 <script> |
| 12 description('Tests if typing an arrow key dispatches |Focus| and |ActiveDescenda
ntChanged| a11y events.'); |
| 13 |
| 14 window.accessibilityController.setNotificationListener(function(axnode, type) { |
| 15 if (type == 'Focus') { |
| 16 debug('Focused: ' + accessibilityController.focusedElement.description); |
| 17 } else if (type == 'ActiveDescendantChanged') { |
| 18 testPassed('Received ActiveDescendantChanged'); |
| 19 finishJSTest(); |
| 20 } |
| 21 }); |
| 22 var date1 = document.getElementById('date1'); |
| 23 openPicker(date1, test1); |
| 24 |
| 25 function test1() { |
| 26 eventSender.keyDown('rightArrow'); |
| 27 } |
| 28 </script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |