| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <input aria-label="aria label" type="text" size=20> |
| <a href="#" aria-label="aria link">test</a> |
| description("This tests that the aria-label attribute works. The input and the A tag should return the appropriate description."); |
| if (window.accessibilityController) { |
| var body = document.getElementById("body"); |
| var obj = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0); |
| var succeeded = obj.description == "AXDescription: aria label"; |
| shouldBe("succeeded", "true"); |
| obj = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(1); |
| succeeded = obj.description == "AXDescription: aria link"; |
| shouldBe("succeeded", "true"); |
| <script src="../resources/js-test-post.js"></script> |