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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/calendar-picker/month-picker-ax.html

Issue 1841333002: Various fixes for aria-activedescendant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some Blink tests. Created 4 years, 8 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
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="month" id="month1" value="2000-01"> 9 <input type="month" id="month1" value="2000-01">
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 // Remove ',' to reduce platform differences. 16 debug('Focused');
17 debug('Focused: ' + escapeHTML(accessibilityController.focusedElement.na me.replace(/,/g, '')));
18 } else if (type == 'ActiveDescendantChanged') { 17 } else if (type == 'ActiveDescendantChanged') {
19 testPassed('Received ActiveDescendantChanged'); 18 testPassed('Received ActiveDescendantChanged');
20 if (++activeDescendantCounter == 2) 19 if (++activeDescendantCounter == 2)
21 finishJSTest(); 20 finishJSTest();
22 } 21 }
23 }); 22 });
24 var activeDescendantCounter = 0; 23 var activeDescendantCounter = 0;
25 var month1 = document.getElementById('month1'); 24 var month1 = document.getElementById('month1');
26 openPicker(month1, test1); 25 openPicker(month1, test1);
27 26
28 function test1() { 27 function test1() {
29 eventSender.keyDown('rightArrow'); 28 eventSender.keyDown('rightArrow');
30 } 29 }
31 30
32 </script> 31 </script>
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698