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="time" step="0.001" value="12:34:56.789"> | 8 <input id=test type="time" step="0.001" value="12:34:56.789"> |
9 <script> | 9 <script> |
10 description('This test checks aria-help attribute of fields in multiple fields t
ime input UI.'); | 10 description('This test checks aria-help attribute of fields in multiple fields t
ime input UI.'); |
(...skipping 13 matching lines...) Expand all Loading... |
24 eventSender.keyDown(key, modifiers); | 24 eventSender.keyDown(key, modifiers); |
25 } | 25 } |
26 | 26 |
27 var testInput = document.getElementById("test"); | 27 var testInput = document.getElementById("test"); |
28 | 28 |
29 enableAccessibility(); | 29 enableAccessibility(); |
30 testInput.focus(); | 30 testInput.focus(); |
31 | 31 |
32 debug('Non-empty value'); | 32 debug('Non-empty value'); |
33 testInput.focus(); | 33 testInput.focus(); |
34 checkFocusedElementAXAttributes('AXHelp: Hours, AXValueDescription: 12, intValue
:12, range:1-12'); | 34 checkFocusedElementAXAttributes('Hours, AXValueDescription: 12, intValue:12, ran
ge:1-12'); |
35 keyDown('\t'); | 35 keyDown('\t'); |
36 checkFocusedElementAXAttributes('AXHelp: Minutes, AXValueDescription: 34, intVal
ue:34, range:0-59'); | 36 checkFocusedElementAXAttributes('Minutes, AXValueDescription: 34, intValue:34, r
ange:0-59'); |
37 keyDown('\t'); | 37 keyDown('\t'); |
38 checkFocusedElementAXAttributes('AXHelp: Seconds, AXValueDescription: 56, intVal
ue:56, range:0-59'); | 38 checkFocusedElementAXAttributes('Seconds, AXValueDescription: 56, intValue:56, r
ange:0-59'); |
39 keyDown('\t'); | 39 keyDown('\t'); |
40 checkFocusedElementAXAttributes('AXHelp: Milliseconds, AXValueDescription: 789,
intValue:789, range:0-999'); | 40 checkFocusedElementAXAttributes('Milliseconds, AXValueDescription: 789, intValue
:789, range:0-999'); |
41 keyDown('\t'); | 41 keyDown('\t'); |
42 checkFocusedElementAXAttributes('AXHelp: AM/PM, AXValueDescription: PM, intValue
:2, range:1-2'); | 42 checkFocusedElementAXAttributes('AM/PM, AXValueDescription: PM, intValue:2, rang
e:1-2'); |
43 | 43 |
44 debug('Empty value'); | 44 debug('Empty value'); |
45 keyDown('\b'); | 45 keyDown('\b'); |
46 checkFocusedElementAXAttributes('AXHelp: AM/PM, AXValueDescription: blank, intVa
lue:0, range:1-2'); | 46 checkFocusedElementAXAttributes('AM/PM, AXValueDescription: blank, intValue:0, r
ange:1-2'); |
47 keyDown('\t', ['shiftKey']); | 47 keyDown('\t', ['shiftKey']); |
48 keyDown('\b'); | 48 keyDown('\b'); |
49 checkFocusedElementAXAttributes('AXHelp: Milliseconds, AXValueDescription: blank
, intValue:0, range:0-999'); | 49 checkFocusedElementAXAttributes('Milliseconds, AXValueDescription: blank, intVal
ue:0, range:0-999'); |
50 keyDown('\t', ['shiftKey']); | 50 keyDown('\t', ['shiftKey']); |
51 keyDown('\b'); | 51 keyDown('\b'); |
52 checkFocusedElementAXAttributes('AXHelp: Seconds, AXValueDescription: blank, int
Value:0, range:0-59'); | 52 checkFocusedElementAXAttributes('Seconds, AXValueDescription: blank, intValue:0,
range:0-59'); |
53 keyDown('\t', ['shiftKey']); | 53 keyDown('\t', ['shiftKey']); |
54 keyDown('\b'); | 54 keyDown('\b'); |
55 checkFocusedElementAXAttributes('AXHelp: Minutes, AXValueDescription: blank, int
Value:0, range:0-59'); | 55 checkFocusedElementAXAttributes('Minutes, AXValueDescription: blank, intValue:0,
range:0-59'); |
56 keyDown('\t', ['shiftKey']); | 56 keyDown('\t', ['shiftKey']); |
57 keyDown('\b'); | 57 keyDown('\b'); |
58 checkFocusedElementAXAttributes('AXHelp: Hours, AXValueDescription: blank, intVa
lue:0, range:1-12'); | 58 checkFocusedElementAXAttributes('Hours, AXValueDescription: blank, intValue:0, r
ange:1-12'); |
59 | 59 |
60 debug(''); | 60 debug(''); |
61 testInput.parentNode.removeChild(testInput); | 61 testInput.parentNode.removeChild(testInput); |
62 </script> | 62 </script> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |