| 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 <select> |
| 9 <option id="element1" role="menuitemcheckbox">1</option> |
| 10 <option id="element2" role="menuitemcheckbox" aria-checked="true">2</option> |
| 11 <option id="element3" role="menuitemradio">3</option> |
| 12 <option id="element4" role="menuitemradio" aria-checked="true">4</option> |
| 13 <!-- Checked not supported --> |
| 14 <option id="element5" aria-checked="true">5</option> |
| 15 <!-- Mixed is not checked --> |
| 16 <option id="element6" role="menuitemcheckbox" aria-checked="mixed">6</option> |
| 17 </select> |
| 18 |
| 19 |
| 20 </select> |
| 21 |
| 22 <p id="description"></p> |
| 23 <div id="console"></div> |
| 24 |
| 25 <script> |
| 26 |
| 27 description("Check whether options with appropriate role can set aria-checke
d"); |
| 28 |
| 29 if (window.accessibilityController) { |
| 30 for (var i = 1; i <= 6; i++) { |
| 31 var element = accessibilityController.accessibleElementById("element
" + i); |
| 32 debug("Role: " + element.role); |
| 33 debug("Checked: " + element.isChecked); |
| 34 } |
| 35 } |
| 36 |
| 37 </script> |
| 38 |
| 39 </body> |
| 40 </html> |
| OLD | NEW |