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

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

Issue 564053002: AX: Calendar Picker: Apply aria-activedescendant to YearListView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the test for Windows 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/calendar-picker/date-picker-ax-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
diff --git a/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html b/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
index e83a9e655ad602004ebdb08ff5209d9b5164974a..048f2b033d907ec620bd43bdf4ff712c7e5aef6d 100644
--- a/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
+++ b/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
@@ -13,11 +13,21 @@ description('Tests if typing an arrow key dispatches |Focus| and |ActiveDescenda
window.accessibilityController.setNotificationListener(function(axnode, type) {
if (type == 'Focus') {
- debug('Focused: ' + escapeHTML(accessibilityController.focusedElement.description));
+ // Remove ',' to reduce platform differences.
+ debug('Focused: ' + escapeHTML(accessibilityController.focusedElement.description.replace(/,/g, '')));
} else if (type == 'ActiveDescendantChanged') {
testPassed('Received ActiveDescendantChanged');
- if (++activeDescendantCounter == 2)
+ if (++activeDescendantCounter == 2) {
testButtonDescription();
+ } else if (activeDescendantCounter == 3) {
+ // Highlight 2000-02 in the month popup.
+ setTimeout(function() { eventSender.keyDown('rightArrow'); }, 0);
+ } else if (activeDescendantCounter == 4) {
+ // Highlight 1999-10 in the month popup.
+ setTimeout(function() { eventSender.keyDown('upArrow'); }, 0);
+ } else if (activeDescendantCounter == 5) {
+ finishJSTest();
+ }
}
});
var activeDescendantCounter = 0;
@@ -37,7 +47,9 @@ function testButtonDescription() {
eventSender.keyDown('\t', ['shiftKey']);
// Focus on the month selector button.
eventSender.keyDown('\t', ['shiftKey']);
- setTimeout(finishJSTest, 0);
+
+ debug('Open the month popup. This should notify the third ActiveDescendantChanged.');
+ eventSender.keyDown(' ');
}
</script>
</body>
« 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