1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
7 <img src="image.jpg" alt="Image alt attr" title="Image title attr">
9 <a href="" title="Link title attr">Functional label</a>:<input title="Entry title attr" type="text" /><input value="Clear" type="reset" /><input value="Submit" title="Submit button title attr" type="submit" />
11 <p id="description"></p>
12 <div id="console"></div>
14 description("This tests the exposure of alt and title information.");
15 if (window.accessibilityController) {
16 layoutTestController.dumpAsText();
17 document.getElementById("body").focus();
18 var webArea = accessibilityController.focusedElement;
20 var image = webArea.childAtIndex(0);
21 shouldBe("image.title", "'AXTitle: Image alt attr'");
22 shouldBe("image.description", "'AXDescription: Image title attr'");
24 var link = webArea.childAtIndex(1);
25 shouldBe("link.title", "'AXTitle: '");
26 shouldBe("link.description", "'AXDescription: Link title attr'");
28 var entry = webArea.childAtIndex(2);
29 shouldBe("entry.title", "'AXTitle: '");
30 shouldBe("entry.description", "'AXDescription: Entry title attr'");
32 var button = webArea.childAtIndex(4);
33 shouldBe("button.title", "'AXTitle: Submit'");
34 shouldBe("button.description", "'AXDescription: Submit button title attr'");
37 <script src="../../../fast/js/resources/js-test-post.js"></script>