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

Side by Side Diff: LayoutTests/fast/forms/calendar-picker/date-picker-ax.html

Issue 550853002: AX: Calendar Picker: Initial day selection should notify ActiveDescendantChanged a11y event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/forms/calendar-picker/date-picker-ax-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../../forms/resources/picker-common.js"></script> 5 <script src="../../forms/resources/picker-common.js"></script>
6 <script src="resources/calendar-picker-common.js"></script> 6 <script src="resources/calendar-picker-common.js"></script>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <input type="date" id="date1" value="2000-01-02"> 9 <input type="date" id="date1" value="2000-01-02">
10 10
11 <script> 11 <script>
12 description('Tests if typing an arrow key dispatches |Focus| and |ActiveDescenda ntChanged| a11y events.'); 12 description('Tests if typing an arrow key dispatches |Focus| and |ActiveDescenda ntChanged| a11y events.');
13 13
14 window.accessibilityController.setNotificationListener(function(axnode, type) { 14 window.accessibilityController.setNotificationListener(function(axnode, type) {
15 if (type == 'Focus') { 15 if (type == 'Focus') {
16 debug('Focused: ' + accessibilityController.focusedElement.description); 16 debug('Focused: ' + accessibilityController.focusedElement.description);
17 } else if (type == 'ActiveDescendantChanged') { 17 } else if (type == 'ActiveDescendantChanged') {
18 testPassed('Received ActiveDescendantChanged'); 18 testPassed('Received ActiveDescendantChanged');
19 finishJSTest(); 19 if (++activeDescendantCounter >= 2)
20 finishJSTest();
20 } 21 }
21 }); 22 });
23 var activeDescendantCounter = 0;
22 var date1 = document.getElementById('date1'); 24 var date1 = document.getElementById('date1');
23 openPicker(date1, test1); 25 openPicker(date1, test1);
24 26
25 function test1() { 27 function test1() {
26 eventSender.keyDown('rightArrow'); 28 eventSender.keyDown('rightArrow');
27 } 29 }
28 </script> 30 </script>
29 </body> 31 </body>
30 </html> 32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/calendar-picker/date-picker-ax-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698