Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<html>
<head>
<title>listbox readonly true</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });
var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"role",
"is",
"ROLE_LIST_BOX"
],
[
"property",
"interfaces",
"contains",
"Selection"
],
[
"property",
"states",
"contains",
"STATE_READ_ONLY"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXList"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
],
[
"property",
"AXRoleDescription",
"is",
"list"
],
[
"result",
"AXUIElementIsAttributeSettable(AXValue)",
"is",
"false"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_LIST"
],
[
"property",
"states",
"doesNotContain",
"IA2_STATE_EDITABLE"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_LIST"
],
[
"property",
"states",
"contains",
"STATE_SYSTEM_READONLY"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"List"
],
[
"property",
"Value.IsReadOnly",
"is",
"true"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "listbox readonly true"
}
) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for listbox readonly true.</p>
<div id="test" aria-readonly="true" role="listbox">
<div role="option">option 1</div>
<div role="option">option 2</div>
<div role="option">option 3</div>
</div>
<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>