| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="../resources/multiple-fields-ax-aria-attributes.js"></script> | 5 <script src="../resources/multiple-fields-ax-aria-attributes.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <input id="test" type="month" value="2012-10"> | 8 <input id="test" type="month" value="2012-10"> |
| 9 <script> | 9 <script> |
| 10 description('This test checks aria-help attribute of fields in multiple fields w
eek input UI.'); | 10 description('This test checks aria-help attribute of fields in multiple fields w
eek input UI.'); |
| 11 | 11 |
| 12 var testInput = document.getElementById('test'); | 12 var testInput = document.getElementById('test'); |
| 13 | 13 |
| 14 if (!window.accessibilityController || !window.eventSender) | 14 if (!window.accessibilityController || !window.eventSender) |
| 15 debug('Please run inside DRT or WTR.'); | 15 debug('Please run inside DRT or WTR.'); |
| 16 else { | 16 else { |
| 17 debug('Non-empty value'); | 17 debug('Non-empty value'); |
| 18 testInput.focus(); | 18 testInput.focus(); |
| 19 checkFocusedElementAXAttributes('Month, AXValueDescription: October, intValu
e:10, range:1-12'); | 19 checkFocusedElementAXAttributes('Month, AXValueDescription: October, intValu
e:10, range:1-12'); |
| 20 eventSender.keyDown('\t'); | 20 eventSender.keyDown('\t'); |
| 21 checkFocusedElementAXAttributes('Year, AXValueDescription: 2012, intValue:20
12, range:1-275760'); | 21 checkFocusedElementAXAttributes('Year, AXValueDescription: 2012, intValue:20
12, range:1-275760'); |
| 22 | 22 |
| 23 debug('Empty value'); | 23 debug('Empty value'); |
| 24 eventSender.keyDown('\b'); | 24 eventSender.keyDown('Backspace'); |
| 25 checkFocusedElementAXAttributes('Year, AXValueDescription: blank, intValue:0
, range:1-275760'); | 25 checkFocusedElementAXAttributes('Year, AXValueDescription: blank, intValue:0
, range:1-275760'); |
| 26 eventSender.keyDown('\t', ['shiftKey']); | 26 eventSender.keyDown('\t', ['shiftKey']); |
| 27 eventSender.keyDown('\b'); | 27 eventSender.keyDown('Backspace'); |
| 28 checkFocusedElementAXAttributes('Month, AXValueDescription: blank, intValue:
0, range:1-12'); | 28 checkFocusedElementAXAttributes('Month, AXValueDescription: blank, intValue:
0, range:1-12'); |
| 29 | 29 |
| 30 debug(''); | 30 debug(''); |
| 31 testInput.remove(); | 31 testInput.remove(); |
| 32 } | 32 } |
| 33 </script> | 33 </script> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| OLD | NEW |