| <script src="../resources/js-test-pre.js"></script> |
| <button id="cake">Button with image of <img alt="cake" src="resources/cake.png" width="40px"></button> |
| description("This test makes sure that a generic focusable div can get accessibility focus and gets its accessible text from contents.."); |
| if (window.testRunner && window.accessibilityController) { |
| window.testRunner.dumpAsText(); |
| var button = document.getElementById('cake'); |
| shouldBe("document.activeElement == button", "true"); |
| window.axButton = accessibilityController.focusedElement; |
| shouldBe("axButton.title.indexOf('Button with image of cake') >= 0", "true"); |
| <script src="../resources/js-test-post.js"></script> |