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