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 <div id="elements" role="group" aria-owns="item1 item2"> |
| 9 <div>Element 1</div> |
| 10 <div>Element 2</div> |
| 11 </div> |
| 12 |
| 13 <div id="item1" role="checkbox"></div> |
| 14 <div id="item2" role="radio"></div> |
| 15 |
| 16 <p id="description"></p> |
| 17 <div id="console"></div> |
| 18 |
| 19 <script> |
| 20 description("This tests that aria-owns identifies the correct element"); |
| 21 |
| 22 if (window.accessibilityController) { |
| 23 var elements = accessibilityController.accessibleElementById("elements")
; |
| 24 var item1 = accessibilityController.accessibleElementById("item1"); |
| 25 var item2 = accessibilityController.accessibleElementById("item2"); |
| 26 |
| 27 shouldBeTrue("elements.ariaOwnsElementAtIndex(0).isEqual(item1)"); |
| 28 shouldBeTrue("elements.ariaOwnsElementAtIndex(1).isEqual(item2)"); |
| 29 } |
| 30 |
| 31 </script> |
| 32 |
| 33 </body> |
| 34 </html> |
OLD | NEW |