| 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> | 10 <div id="element3" role="radio" aria-checked="mixed"></div> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 <div id="console"></div> | 22 <div id="console"></div> |
| 23 | 23 |
| 24 <script> | 24 <script> |
| 25 | 25 |
| 26 description("Check whether ARIA mixed state is reported properly"); | 26 description("Check whether ARIA mixed state is reported properly"); |
| 27 | 27 |
| 28 if (window.accessibilityController) { | 28 if (window.accessibilityController) { |
| 29 for (var i = 1; i <= 10; i++) { | 29 for (var i = 1; i <= 10; i++) { |
| 30 var element = accessibilityController.accessibleElementById("element
" + i); | 30 var element = accessibilityController.accessibleElementById("element
" + i); |
| 31 debug("Role: " + element.role); | 31 debug("Role: " + element.role); |
| 32 debug("Mixed: " + element.isButtonStateMixed); | 32 debug("Mixed: " + (element.checkedState === 'mixed')); |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 </script> | 36 </script> |
| 37 | 37 |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| OLD | NEW |