1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
8 <input type=
"text" id=
"input" value=
"Value">
10 <p id=
"description"></p>
12 <div id=
"console"></div>
16 description("Demonstrates that accessible inline text boxes can be found within an input type=text.");
18 if (window
.accessibilityController
) {
20 function findAllDescendantsWithRole(axObject
, role
) {
21 if (axObject
.role
== role
)
24 for (var i
= 0; i
< axObject
.childrenCount
; i
++)
25 result
= result
.concat(findAllDescendantsWithRole(axObject
.childAtIndex(i
), role
));
29 var axInput
= accessibilityController
.accessibleElementById('input');
30 var axDiv
= axInput
.childAtIndex(0);
31 var axStaticText
= axDiv
.childAtIndex(0);
32 var axInlineTextBox
= axStaticText
.childAtIndex(0);
33 shouldBe("axInlineTextBox.role", "'AXRole: AXInlineTextBox'");
34 shouldBe("axInlineTextBox.stringValue", "'AXValue: Value'");