Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-flowto.html
blob848f0c39ed57acece95188c7db25765967350f23
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
8 <h1 id="item1" aria-flowto="item2 item3"></h1>
10 <div id="item2">Content 2</div>
11 <div id="item3">Content 3</div>
13 <p id="description"></p>
14 <div id="console"></div>
16 <script>
17 description("This tests that aria-flowto identifies the correct element");
19 if (window.accessibilityController) {
20 var item1 = accessibilityController.accessibleElementById("item1");
21 var item2 = accessibilityController.accessibleElementById("item2");
22 var item3 = accessibilityController.accessibleElementById("item3");
24 shouldBeTrue("item1.ariaFlowToElementAtIndex(0).isEqual(item2)");
25 shouldBeTrue("item1.ariaFlowToElementAtIndex(1).isEqual(item3)");
28 </script>
30 </body>
31 </html>