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

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

Issue 2045603002: Handle the "key" field as opposed to keyIdentifier field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove initialization of the view Created 4 years, 6 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="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <input id="test" type="week" value="2012-W10"> 7 <input id="test" type="week" value="2012-W10">
8 <script> 8 <script>
9 description('This test checks aria-help attribute of fields in multiple fields w eek input UI.'); 9 description('This test checks aria-help attribute of fields in multiple fields w eek input UI.');
10 10
11 function focusedFieldValueDescription() 11 function focusedFieldValueDescription()
12 { 12 {
13 var element = accessibilityController.focusedElement; 13 var element = accessibilityController.focusedElement;
14 return element.description + ', ' + element.valueDescription + ', ' + eleme nt.minValue + ', ' + element.maxValue; 14 return element.description + ', ' + element.valueDescription + ', ' + eleme nt.minValue + ', ' + element.maxValue;
15 } 15 }
16 16
17 var testInput = document.getElementById('test'); 17 var testInput = document.getElementById('test');
18 18
19 if (!window.accessibilityController || !window.eventSender) 19 if (!window.accessibilityController || !window.eventSender)
20 debug('Please run inside DRT or WTR.'); 20 debug('Please run inside DRT or WTR.');
21 else { 21 else {
22 debug('Non-empty value'); 22 debug('Non-empty value');
23 testInput.focus(); 23 testInput.focus();
24 shouldBeEqualToString('focusedFieldValueDescription()', 'Week, AXValueDescri ption: 10, 1, 53'); 24 shouldBeEqualToString('focusedFieldValueDescription()', 'Week, AXValueDescri ption: 10, 1, 53');
25 eventSender.keyDown('\t'); 25 eventSender.keyDown('\t');
26 shouldBeEqualToString('focusedFieldValueDescription()', 'Year, AXValueDescri ption: 2012, 1, 275760'); 26 shouldBeEqualToString('focusedFieldValueDescription()', 'Year, AXValueDescri ption: 2012, 1, 275760');
27 27
28 debug('Empty value'); 28 debug('Empty value');
29 eventSender.keyDown('\b'); 29 eventSender.keyDown('Backspace');
30 shouldBeEqualToString('focusedFieldValueDescription()', 'Year, AXValueDescri ption: blank, 1, 275760'); 30 shouldBeEqualToString('focusedFieldValueDescription()', 'Year, AXValueDescri ption: blank, 1, 275760');
31 eventSender.keyDown('\t', ['shiftKey']); 31 eventSender.keyDown('\t', ['shiftKey']);
32 eventSender.keyDown('\b'); 32 eventSender.keyDown('Backspace');
33 shouldBeEqualToString('focusedFieldValueDescription()', 'Week, AXValueDescri ption: blank, 1, 53'); 33 shouldBeEqualToString('focusedFieldValueDescription()', 'Week, AXValueDescri ption: blank, 1, 53');
34 34
35 debug(''); 35 debug('');
36 testInput.remove(); 36 testInput.remove();
37 } 37 }
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698