| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| var successfullyParsed = false; |
| <a href="store.html" id="link"> |
| <img src="image.gif" width=100 height=100 alt="Hello World"> |
| description("This test makes sure that a link with only an image will report the correct label."); |
| if (window.accessibilityController) { |
| var obj = accessibilityController.accessibleElementById("link"); |
| shouldBeFalse("obj.isIgnored"); |
| shouldBe("obj.description", "'AXLabel: Hello World'"); |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |