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

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

Issue 536903002: AX: Make the calendar role "grid". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: /_/g and timezone-independecy 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
new file mode 100644
index 0000000000000000000000000000000000000000..716ac63c3330c7fc33003a03049ed6b7fbb2d23a
--- /dev/null
+++ b/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<script src="../../forms/resources/picker-common.js"></script>
+<script src="resources/calendar-picker-common.js"></script>
+<p id="description"></p>
+<div id="console"></div>
+<input type="date" id="date1" value="2000-01-02">
+
+<script>
+description('Tests if typing an arrow key dispatches |Focus| and |ActiveDescendantChanged| a11y events.');
+
+window.accessibilityController.setNotificationListener(function(axnode, type) {
+ if (type == 'Focus') {
+ debug('Focused: ' + accessibilityController.focusedElement.description);
+ } else if (type == 'ActiveDescendantChanged') {
+ testPassed('Received ActiveDescendantChanged');
+ finishJSTest();
+ }
+});
+var date1 = document.getElementById('date1');
+openPicker(date1, test1);
+
+function test1() {
+ eventSender.keyDown('rightArrow');
+}
+</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