blob: 202b662c3953fc54e0a24504c1f6206d95a0b757 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<label for="slider" tabindex="0" id="title">Color:</label>
<input id="slider" type="range" min="0" value="0" max="6">
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that sliders are allowed to have title UI elements.");
if (window.accessibilityController) {
document.getElementById("slider").focus();
var slider = accessibilityController.focusedElement;
document.getElementById("title").focus();
var title = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0).childAtIndex(0);
shouldBeTrue("slider.titleUIElement().isEqual(title)");
shouldBe("title.role", "'AXRole: AXGroup'");
shouldBe("title.childAtIndex(0).role", "'AXRole: AXStaticText'");
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>