blob: f170e49fbf86df762dfb2518be0905c2026bef47 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body id="body">
<p>This tests that select elements have the correct role.</p>
<p id="notDRT">This test should only be run inside of DumpRenderTree.</p>
<select id="selectElement" title="selectElement">
<option SELECTED>Option 1</option>
</select>
<p id="console"></p>
<script>
if (window.testRunner && window.accessibilityController) {
document.getElementById("notDRT").style.visibility = "hidden";
document.getElementById("selectElement").focus();
shouldBe('accessibilityController.focusedElement.role', '"AXRole: AXComboBox"');
}
</script>
</body>
</html>