1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 <label for="slider" tabindex="0" id="title">Color:</label>
9 <input id="slider" type="range" min="0" value="0" max="6">
11 <p id="description"></p>
12 <div id="console"></div>
16 description("This tests that sliders are allowed to have title UI elements.");
18 if (window.accessibilityController) {
20 document.getElementById("slider").focus();
21 var slider = accessibilityController.focusedElement;
23 document.getElementById("title").focus();
24 var title = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0).childAtIndex(0);
26 shouldBeTrue("slider.titleUIElement().isEqual(title)");
27 shouldBe("title.role", "'AXRole: AXGroup'");
28 shouldBe("title.childAtIndex(0).role", "'AXRole: AXStaticText'");
33 <script src="../../../fast/js/resources/js-test-post.js"></script>