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

Unified Diff: LayoutTests/accessibility/aria-owns.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
Index: LayoutTests/accessibility/aria-owns.html
diff --git a/LayoutTests/accessibility/aria-owns.html b/LayoutTests/accessibility/aria-owns.html
new file mode 100644
index 0000000000000000000000000000000000000000..d715918dcc3807088a1f5efb49b425de25b1676f
--- /dev/null
+++ b/LayoutTests/accessibility/aria-owns.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">
+
+<div id="elements" role="group" aria-owns="item1 item2">
+<div>Element 1</div>
+<div>Element 2</div>
+</div>
+
+<div id="item1" role="checkbox"></div>
+<div id="item2" role="radio"></div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+ description("This tests that aria-owns identifies the correct element");
+
+ if (window.accessibilityController) {
+ var elements = accessibilityController.accessibleElementById("elements");
+ var item1 = accessibilityController.accessibleElementById("item1");
+ var item2 = accessibilityController.accessibleElementById("item2");
+
+ shouldBeTrue("elements.ariaOwnsElementAtIndex(0).isEqual(item1)");
+ shouldBeTrue("elements.ariaOwnsElementAtIndex(1).isEqual(item2)");
+ }
+
+</script>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/accessibility/aria-flowto-expected.txt ('k') | LayoutTests/accessibility/aria-owns-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698