3 <script src="../fast/js/resources/js-test-pre.js"></script>
7 testRunner.dumpAsText();
11 <img id='image' src="resources/cake.png" role="button" alt="alternate" title="title">
13 <p id="description"></p>
14 <div id="console"></div>
17 description("This test makes sure that a img acting as an aria button still returns its alt tag as the description");
19 if (window.accessibilityController) {
20 var result = document.getElementById("result");
22 var body = document.getElementById("body").focus();
23 var imgUIElement = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
24 shouldBe("imgUIElement.description", "'AXDescription: alternate'");
28 <script src="../fast/js/resources/js-test-post.js"></script>