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

Unified Diff: LayoutTests/accessibility/aria-flowto.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-flowto.html
diff --git a/LayoutTests/accessibility/aria-flowto.html b/LayoutTests/accessibility/aria-flowto.html
new file mode 100644
index 0000000000000000000000000000000000000000..848f0c39ed57acece95188c7db25765967350f23
--- /dev/null
+++ b/LayoutTests/accessibility/aria-flowto.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<h1 id="item1" aria-flowto="item2 item3"></h1>
+
+<div id="item2">Content 2</div>
+<div id="item3">Content 3</div>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+ description("This tests that aria-flowto identifies the correct element");
+
+ if (window.accessibilityController) {
+ var item1 = accessibilityController.accessibleElementById("item1");
+ var item2 = accessibilityController.accessibleElementById("item2");
+ var item3 = accessibilityController.accessibleElementById("item3");
+
+ shouldBeTrue("item1.ariaFlowToElementAtIndex(0).isEqual(item2)");
+ shouldBeTrue("item1.ariaFlowToElementAtIndex(1).isEqual(item3)");
+ }
+
+</script>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/accessibility/aria-controls-expected.txt ('k') | LayoutTests/accessibility/aria-flowto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698