1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
6 <body id="body" onload="startTest();">
8 <label for="foo">Full Name:</label>
9 <input type="text" id="foo" />
11 <p id="description"></p>
12 <div id="console"></div>
17 function checkResults() {
18 // Actually check the results
19 entry = form.childAtIndex(1);
20 shouldBe("entry.role", "'AXRole: entry'");
21 shouldBe("entry.title", "'AXTitle: Full Name:'");
25 function startTest() {
26 description("This tests that AtkObjects derive their names from associated labels.");
28 if (window.layoutTestController) {
29 layoutTestController.dumpAsText();
32 document.getElementById("body").focus();
33 webArea = accessibilityController.focusedElement;
34 form = webArea.childAtIndex(0);
36 // Check results on idle to ensure layout() is done
37 window.setTimeout("checkResults()", 0);
40 window.jsTestIsAsync = true;
42 <script src="../../../fast/js/resources/js-test-post.js"></script>