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

Side by Side Diff: LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles.html

Issue 806823002: Ignore text elements for menu item related roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make sure parent object is always a valid object Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
7
8 <div role="menubar" id="menu1">
9 <div role="menuitemcheckbox" tabindex="0">menu item checkbox</div>
10 <div role="menuitemradio" tabindex="0">menu item radio</div>
11 </div>
12
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18 if (window.accessibilityController) {
19 var menu = accessibilityController.accessibleElementById("menu1");
20 shouldBeTrue("!menu.childAtIndex(0).childAtIndex(0)");
21 shouldBeTrue("!menu.childAtIndex(1).childAtIndex(0)");
22 // Static text should be reported along with menu item
23 debug(menu.childAtIndex(0).title);
24 debug(menu.childAtIndex(1).title);
25 }
26
27 </script>
28
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698