| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body id="body"> | 6 <body id="body"> |
| 7 | 7 |
| 8 <div id="element1" role="checkbox" aria-checked="mixed"></div> | 8 <div id="element1" role="checkbox" aria-checked="mixed"></div> |
| 9 <div id="element2" role="menuitemcheckbox" 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 --> | 10 <div id="element3" role="radio" aria-checked="mixed"></div> |
| 11 <div id="element4" role="menuitemradio" aria-checked="mixed"></div> <!-- Treat a
s false for menuitemradio role --> | 11 <div id="element4" role="menuitemradio" aria-checked="mixed"></div> |
| 12 <!-- Switch specifically does not support mixed --> |
| 13 <div id="element5" role="switch" aria-checked="mixed"></div> |
| 14 |
| 15 <input id="element6" type="checkbox" aria-checked="mixed" checked /> |
| 16 <input id="element7" type="checkbox" aria-checked="mixed" /> |
| 17 <input id="element8" type="radio" aria-checked="mixed" checked /> |
| 18 <input id="element9" type="radio" aria-checked="mixed" /> |
| 19 <input id="element10" type="button" aria-checked="mixed" /> |
| 12 | 20 |
| 13 <p id="description"></p> | 21 <p id="description"></p> |
| 14 <div id="console"></div> | 22 <div id="console"></div> |
| 15 | 23 |
| 16 <script> | 24 <script> |
| 17 | 25 |
| 18 description("Check whether mixed value is reported properly"); | 26 description("Check whether ARIA mixed state is reported properly"); |
| 19 | 27 |
| 20 if (window.accessibilityController) { | 28 if (window.accessibilityController) { |
| 21 for (var i = 1; i <= 4; i++) { | 29 for (var i = 1; i <= 10; i++) { |
| 22 var element = accessibilityController.accessibleElementById("element
" + i); | 30 var element = accessibilityController.accessibleElementById("element
" + i); |
| 23 debug("Role: " + element.role); | 31 debug("Role: " + element.role); |
| 24 debug("Mixed: " + element.isButtonStateMixed); | 32 debug("Mixed: " + element.isButtonStateMixed); |
| 25 } | 33 } |
| 26 } | 34 } |
| 27 | 35 |
| 28 </script> | 36 </script> |
| 29 | 37 |
| 30 </body> | 38 </body> |
| 31 </html> | 39 </html> |
| OLD | NEW |