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

Unified Diff: LayoutTests/accessibility/not-ignore-landmark-roles.html

Issue 104583006: Don't ignore landmark and related AXObjects, because they should be exposed to (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 6 years, 12 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
« no previous file with comments | « no previous file | LayoutTests/accessibility/not-ignore-landmark-roles-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/not-ignore-landmark-roles.html
===================================================================
--- LayoutTests/accessibility/not-ignore-landmark-roles.html (revision 0)
+++ LayoutTests/accessibility/not-ignore-landmark-roles.html (revision 0)
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<div id="container" tabindex="-1">
+ <article><div>article element</div></article>
+ <section><div>section element</div></section>
+ <header><div>header element</div></header>
+ <aside><div>aside element</div></aside>
+ <address><div>address element</div></address>
+ <footer><div>footer element</div></footer>
+ <main><div>main element</div></main>
+ <nav><div>nav element</div></nav>
+</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+if (window.testRunner && window.accessibilityController) {
+ testRunner.dumpAsText();
+
+ description("This tests that landmark and related roles are not ignored.");
+
+ var roles = [
+ "AXArticle",
+ "AXRegion",
+ "AXBanner",
+ "AXComplementary",
+ "AXContentInfo",
+ "AXFooter",
+ "AXMain",
+ "AXNavigation"
+ ];
+
+ var container = document.getElementById("container");
+ container.focus();
+ var containerNode = accessibilityController.focusedElement;
+
+ shouldBe("containerNode.childrenCount", "" + roles.length);
+
+ for (var i = 0; i < roles.length; i++) {
+ var AXObject = containerNode.childAtIndex(i);
+ shouldBe("AXObject.role", "'AXRole: " + roles[i] + "'");
+ }
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/accessibility/not-ignore-landmark-roles-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698