OLD | NEW |
(Empty) | |
| 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"> |
| 7 |
| 8 <h1 id="item1" aria-flowto="item2 item3"></h1> |
| 9 |
| 10 <div id="item2">Content 2</div> |
| 11 <div id="item3">Content 3</div> |
| 12 |
| 13 <p id="description"></p> |
| 14 <div id="console"></div> |
| 15 |
| 16 <script> |
| 17 description("This tests that aria-flowto identifies the correct element"); |
| 18 |
| 19 if (window.accessibilityController) { |
| 20 var item1 = accessibilityController.accessibleElementById("item1"); |
| 21 var item2 = accessibilityController.accessibleElementById("item2"); |
| 22 var item3 = accessibilityController.accessibleElementById("item3"); |
| 23 |
| 24 shouldBeTrue("item1.ariaFlowToElementAtIndex(0).isEqual(item2)"); |
| 25 shouldBeTrue("item1.ariaFlowToElementAtIndex(1).isEqual(item3)"); |
| 26 } |
| 27 |
| 28 </script> |
| 29 |
| 30 </body> |
| 31 </html> |
OLD | NEW |