| 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 <span tabindex="0" id="test" role="unknownrole switch checkbox" aria-checked="tr
ue">test</span> | 8 <span tabindex="0" id="test" role="unknownrole checkbox" aria-checked="true">tes
t</span> |
| 9 | 9 |
| 10 <p id="description"></p> | 10 <p id="description"></p> |
| 11 <div id="console"></div> | 11 <div id="console"></div> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 | 14 |
| 15 description("This tests that aria fallback roles work correctly."); | 15 description("This tests that aria fallback roles work correctly."); |
| 16 if (window.accessibilityController) { | 16 if (window.accessibilityController) { |
| 17 | 17 |
| 18 if (window.accessibilityController) { | 18 if (window.accessibilityController) { |
| 19 | 19 |
| 20 var test = document.getElementById("test"); | 20 var test = document.getElementById("test"); |
| 21 test.focus(); | 21 test.focus(); |
| 22 test = accessibilityController.focusedElement; | 22 test = accessibilityController.focusedElement; |
| 23 | 23 |
| 24 debug("Role should be: " + test.role); | 24 debug("Role should be: " + test.role); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 | 28 |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |