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 role="menubar" id="menu1"> |
| 9 <div role="menuitemcheckbox" tabindex="0">menu item checkbox</div> |
| 10 <div role="menuitemradio" tabindex="0">menu item radio</div> |
| 11 </div> |
| 12 |
| 13 <p id="description"></p> |
| 14 <div id="console"></div> |
| 15 |
| 16 <script> |
| 17 |
| 18 if (window.accessibilityController) { |
| 19 var menu = accessibilityController.accessibleElementById("menu1"); |
| 20 shouldBeTrue("!menu.childAtIndex(0).childAtIndex(0)"); |
| 21 shouldBeTrue("!menu.childAtIndex(1).childAtIndex(0)"); |
| 22 // Static text should be reported along with menu item |
| 23 debug(menu.childAtIndex(0).title); |
| 24 debug(menu.childAtIndex(1).title); |
| 25 } |
| 26 |
| 27 </script> |
| 28 |
| 29 </body> |
| 30 </html> |
OLD | NEW |