| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | |
| 5 </head> | |
| 6 <body id="body"> | |
| 7 | |
| 8 <div role="radiobuttongroup"> | |
| 9 <div role="checkbox" id="check1" tabindex="0" aria-checked="true">One</d
iv> | |
| 10 <div role="checkbox" id="check2" tabindex="0">Two</div> | |
| 11 <div role="checkbox" id="check3" tabindex="0" id="foo" aria-labelledby="
foo">Three</div> | |
| 12 </div> | |
| 13 | |
| 14 <p id="description"></p> | |
| 15 <div id="console"></div> | |
| 16 | |
| 17 <script> | |
| 18 | |
| 19 description("This tests that ARIA checkboxes use accessible name computation
."); | |
| 20 | |
| 21 if (window.accessibilityController) { | |
| 22 | |
| 23 var checkbox = document.getElementById("check1"); | |
| 24 checkbox.focus(); | |
| 25 checkbox = accessibilityController.focusedElement; | |
| 26 shouldBe("checkbox.title", "'AXTitle: One'"); | |
| 27 | |
| 28 checkbox = document.getElementById("check2"); | |
| 29 checkbox.focus(); | |
| 30 checkbox = accessibilityController.focusedElement; | |
| 31 shouldBe("checkbox.title", "'AXTitle: Two'"); | |
| 32 | |
| 33 checkbox = document.getElementById("check3"); | |
| 34 checkbox.focus(); | |
| 35 checkbox = accessibilityController.focusedElement; | |
| 36 shouldBe("checkbox.title", "'AXTitle: Three'"); | |
| 37 } | |
| 38 | |
| 39 </script> | |
| 40 | |
| 41 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 42 </body> | |
| 43 </html> | |
| OLD | NEW |