1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
9 <legend>Choose a shipping method:</legend>
10 <input id="overnight" type="radio" name="shipping" value="overnight" />Overnight
13 <p id="description"></p>
14 <div id="console"></div>
18 description("This tests that a fieldset's title ui element is the legend's static text.");
19 if (window.accessibilityController) {
21 if (window.accessibilityController) {
23 var body = document.getElementById("body");
26 var fieldset = accessibilityController.focusedElement.childAtIndex(0);
27 var titleUIElement = fieldset.titleUIElement();
28 shouldBe("titleUIElement.role", "'AXRole: AXGroup'");
29 shouldBe("titleUIElement.childAtIndex(0).role", "'AXRole: AXStaticText'");
30 shouldBe("titleUIElement.childAtIndex(0).stringValue", "'AXValue: Choose a shipping method:'");
35 <script src="../../../fast/js/resources/js-test-post.js"></script>