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

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: 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
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..e9dccbdebb384529199c1558a63c3ed02b544543
--- /dev/null
+++ b/LayoutTests/fast/forms/calendar-picker/date-picker-ax.html
@@ -0,0 +1,31 @@
+<!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);
+ return;
+ } else if (type == 'ActiveDescendantChanged') {
+ testPassed('Received ActiveDescendantChanged');
+ finishJSTest();
+ }
+});
+var date1 = document.getElementById('date1');
+openPicker(date1, test1);
+
+function test1() {
+ eventSender.keyDown('rightArrow');
+}
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698