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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles.html
diff --git a/LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles.html b/LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles.html
new file mode 100644
index 0000000000000000000000000000000000000000..de6949a8f2ea14e31c4ebe915cd0cf271f63cd6d
--- /dev/null
+++ b/LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<div role="menubar" id="menu1">
+<div role="menuitemcheckbox" tabindex="0">menu item checkbox</div>
+<div role="menuitemradio" tabindex="0">menu item radio</div>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+ if (window.accessibilityController) {
+ var menu = accessibilityController.accessibleElementById("menu1");
+ shouldBeTrue("!menu.childAtIndex(0).childAtIndex(0)");
+ shouldBeTrue("!menu.childAtIndex(1).childAtIndex(0)");
+ // Static text should be reported along with menu item
+ debug(menu.childAtIndex(0).title);
+ debug(menu.childAtIndex(1).title);
+ }
+
+</script>
+
+</body>
+</html>
« 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