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

Unified Diff: LayoutTests/accessibility/aria-controls.html

Issue 844543002: Adding aria-flowto.html, aria-controls.html and aria-owns.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/aria-controls-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/aria-controls.html
diff --git a/LayoutTests/accessibility/aria-controls.html b/LayoutTests/accessibility/aria-controls.html
new file mode 100644
index 0000000000000000000000000000000000000000..c6720bace9e6657bdd1a10206797bec4252cdbbd
--- /dev/null
+++ b/LayoutTests/accessibility/aria-controls.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<ul id="tablist_1" role="tablist">
+<li id="tab_1" role="tab" aria-controls="panel_1 panel_2"></li>
+</ul>
+
+<div id="panel_1" role="tabpanel">Panel 1</div>
+<div id="panel_2" role="tabpanel">Panel 2</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+ description("This tests that aria-controls identifies the correct element");
+
+ if (window.accessibilityController) {
+ var tab_1 = accessibilityController.accessibleElementById("tablist_1").childAtIndex(0);
+ var panel_1 = accessibilityController.accessibleElementById("panel_1");
+ var panel_2 = accessibilityController.accessibleElementById("panel_2");
+
+ shouldBeTrue("tab_1.ariaControlsElementAtIndex(0).isEqual(panel_1)");
+ shouldBeTrue("tab_1.ariaControlsElementAtIndex(1).isEqual(panel_2)");
+
+ }
+
+</script>
+
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-controls-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698