1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
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>
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)");