JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / gtk / accessibility / name-from-label.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body" onload="startTest();">
7 <form>
8 <label for="foo">Full Name:</label>
9 <input type="text" id="foo" />
10 </form>
11 <p id="description"></p>
12 <div id="console"></div>
13 <script>
14   var webArea;
15   var child;
16
17   function checkResults() {
18     // Actually check the results
19     shouldBe("child.role", "'AXRole: entry'");
20     shouldBe("child.title", "'AXTitle: Full Name:'");
21     finishJSTest();
22   }
23
24   function startTest() {
25     description("This tests that AtkObjects derive their names from associated labels.");
26
27     if (window.layoutTestController) {
28       layoutTestController.dumpAsText();
29     }
30
31     document.getElementById("body").focus();
32     webArea = accessibilityController.focusedElement;
33     child = webArea.childAtIndex(1);
34
35     // Check results on idle to ensure layout() is done
36     window.setTimeout("checkResults()", 0);
37   }
38
39   window.jsTestIsAsync = true;
40 </script>
41 <script src="../../../fast/js/resources/js-test-post.js"></script>
42 </body>
43 </html>