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

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

Issue 561673002: AX: Calendar Picker: Update a test for button descriptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test stability 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 07e4048c21a287f7ea5b0e8b211872bf914350da..e83a9e655ad602004ebdb08ff5209d9b5164974a 100644
--- a/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
+++ b/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
@@ -13,11 +13,11 @@ description('Tests if typing an arrow key dispatches |Focus| and |ActiveDescenda
window.accessibilityController.setNotificationListener(function(axnode, type) {
if (type == 'Focus') {
- debug('Focused: ' + accessibilityController.focusedElement.description);
+ debug('Focused: ' + escapeHTML(accessibilityController.focusedElement.description));
} else if (type == 'ActiveDescendantChanged') {
testPassed('Received ActiveDescendantChanged');
- if (++activeDescendantCounter >= 2)
- finishJSTest();
+ if (++activeDescendantCounter == 2)
+ testButtonDescription();
}
});
var activeDescendantCounter = 0;
@@ -27,6 +27,18 @@ openPicker(date1, test1);
function test1() {
eventSender.keyDown('rightArrow');
}
+
+function testButtonDescription() {
+ // Focus on 'next month' button.
+ eventSender.keyDown('\t', ['shiftKey']);
+ // Focus on the today button.
+ eventSender.keyDown('\t', ['shiftKey']);
+ // Focus on 'previous month' button.
+ eventSender.keyDown('\t', ['shiftKey']);
+ // Focus on the month selector button.
+ eventSender.keyDown('\t', ['shiftKey']);
+ setTimeout(finishJSTest, 0);
+}
</script>
</body>
</html>
« 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