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="element1" role="checkbox" aria-checked="mixed"></div> |
| 9 <div id="element2" role="menuitemcheckbox" aria-checked="mixed"></div> |
| 10 <div id="element3" role="radio" aria-checked="mixed"></div> <!-- Treat as false
for radio role --> |
| 11 <div id="element4" role="menuitemradio" aria-checked="mixed"></div> <!-- Treat a
s false for menuitemradio role --> |
| 12 |
| 13 <p id="description"></p> |
| 14 <div id="console"></div> |
| 15 |
| 16 <script> |
| 17 |
| 18 description("Check whether mixed value is reported properly"); |
| 19 |
| 20 if (window.accessibilityController) { |
| 21 for (var i = 1; i <= 4; i++) { |
| 22 var element = accessibilityController.accessibleElementById("element
" + i); |
| 23 debug("Role: " + element.role); |
| 24 debug("Mixed: " + element.isButtonStateMixed); |
| 25 } |
| 26 } |
| 27 |
| 28 </script> |
| 29 |
| 30 </body> |
| 31 </html> |
OLD | NEW |