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