Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: LayoutTests/fast/forms/month-multiple-fields/month-multiple-fields-ax-aria-attributes.html

Issue 12086056: Merge 140803 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 <script src="../resources/multiple-fields-ax-aria-attributes.js"></script>
5 </head> 6 </head>
6 <body> 7 <body>
7 <input id="test" type="month" value="2012-10"> 8 <input id="test" type="month" value="2012-10">
8 <script> 9 <script>
9 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.');
10 11
11 function focusedFieldValueDescription()
12 {
13 var element = accessibilityController.focusedElement;
14 return element.helpText + ', ' + element.valueDescription + ', ' + element. minValue + ', ' + element.maxValue;
15 }
16
17 var testInput = document.getElementById('test'); 12 var testInput = document.getElementById('test');
18 13
19 if (!window.accessibilityController || !window.eventSender) 14 if (!window.accessibilityController || !window.eventSender)
20 debug('Please run inside DRT or WTR.'); 15 debug('Please run inside DRT or WTR.');
21 else { 16 else {
22 debug('Non-empty value'); 17 debug('Non-empty value');
23 testInput.focus(); 18 testInput.focus();
24 shouldBeEqualToString('focusedFieldValueDescription()', 'AXHelp: Month, AXVa lueDescription: October, 1, 12'); 19 checkFocusedElementAXAttributes('AXHelp: Month, AXValueDescription: October, intValue:10, range:1-12');
25 eventSender.keyDown('\t'); 20 eventSender.keyDown('\t');
26 shouldBeEqualToString('focusedFieldValueDescription()', 'AXHelp: Year, AXVal ueDescription: 2012, 1, 275760'); 21 checkFocusedElementAXAttributes('AXHelp: Year, AXValueDescription: 2012, int Value:2012, range:1-275760');
27 22
28 debug('Empty value'); 23 debug('Empty value');
29 eventSender.keyDown('\b'); 24 eventSender.keyDown('\b');
30 shouldBeEqualToString('focusedFieldValueDescription()', 'AXHelp: Year, AXVal ueDescription: blank, 1, 275760'); 25 checkFocusedElementAXAttributes('AXHelp: Year, AXValueDescription: blank, in tValue:0, range:1-275760');
31 eventSender.keyDown('\t', ['shiftKey']); 26 eventSender.keyDown('\t', ['shiftKey']);
32 eventSender.keyDown('\b'); 27 eventSender.keyDown('\b');
33 shouldBeEqualToString('focusedFieldValueDescription()', 'AXHelp: Month, AXVa lueDescription: blank, 1, 12'); 28 checkFocusedElementAXAttributes('AXHelp: Month, AXValueDescription: blank, i ntValue:0, range:1-12');
34 29
35 debug(''); 30 debug('');
36 testInput.remove(); 31 testInput.remove();
37 } 32 }
38 </script> 33 </script>
39 <script src="../../../fast/js/resources/js-test-post.js"></script> 34 <script src="../../../fast/js/resources/js-test-post.js"></script>
40 </body> 35 </body>
41 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698