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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/menu-list-popup-reuses-objects.html

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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 5
6 <select id="menulist"> 6 <select id="menulist">
7 <option id="item0">Alicia</option> 7 <option id="item0">Alicia</option>
8 <option id="item1">Peter</option> 8 <option id="item1">Peter</option>
9 <option id="item2">Kalinda</option> 9 <option id="item2">Kalinda</option>
10 </select> 10 </select>
(...skipping 15 matching lines...) Expand all
26 var axMenuListOption = axMenuListPopup.childAtIndex(0); 26 var axMenuListOption = axMenuListPopup.childAtIndex(0);
27 shouldBe("axMenuListOption.role", "\"AXRole: AXMenuListOption\""); 27 shouldBe("axMenuListOption.role", "\"AXRole: AXMenuListOption\"");
28 28
29 window.setTimeout(function() { 29 window.setTimeout(function() {
30 30
31 // Explore the whole accessibility tree. State change events won't fire on a ccessible objects that haven't 31 // Explore the whole accessibility tree. State change events won't fire on a ccessible objects that haven't
32 // been created yet. 32 // been created yet.
33 accessibilityController.accessibleElementById('foo'); 33 accessibilityController.accessibleElementById('foo');
34 34
35 accessibilityController.addNotificationListener(function(element, notificati on) { 35 accessibilityController.addNotificationListener(function(element, notificati on) {
36 if (element.stringValue == axMenuListOption.stringValue) { 36 if (element.name == axMenuListOption.name) {
37 window.element = element; 37 window.element = element;
38 shouldBe("element.isEqual(axMenuListOption)", "true"); 38 shouldBe("element.isEqual(axMenuListOption)", "true");
39 shouldBe("element.parentElement().isEqual(axMenuListPopup)", "true") ; 39 shouldBe("element.parentElement().isEqual(axMenuListPopup)", "true") ;
40 finishJSTest(); 40 finishJSTest();
41 } 41 }
42 }); 42 });
43 43
44 menulist.selectedIndex = 1; 44 menulist.selectedIndex = 1;
45 }, 0); 45 }, 0);
46 } 46 }
47 47
48 </script> 48 </script>
49 49
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698