1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
7 <input aria-label=
"aria label" type=
"text" size=
20>
8 <a href=
"#" aria-label=
"aria link">test
</a>
9 <p id=
"description"></p>
10 <div id=
"console"></div>
14 description("This tests that the aria-label attribute works. The input and the A tag should return the appropriate description.");
16 if (window
.accessibilityController
) {
18 var body
= document
.getElementById("body");
20 var obj
= accessibilityController
.focusedElement
.childAtIndex(0).childAtIndex(0);
21 var succeeded
= obj
.deprecatedDescription
== "AXDescription: aria label";
22 shouldBe("succeeded", "true");
24 obj
= accessibilityController
.focusedElement
.childAtIndex(0).childAtIndex(1);
25 succeeded
= obj
.deprecatedDescription
== "AXDescription: aria link";
26 shouldBe("succeeded", "true");