OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <input type="text" id="input" value="Value"> | 8 <input type="text" id="input" value="Value"> |
9 | 9 |
10 <p id="description"></p> | 10 <p id="description"></p> |
(...skipping 13 matching lines...) Expand all Loading... |
24 for (var i = 0; i < axObject.childrenCount; i++) | 24 for (var i = 0; i < axObject.childrenCount; i++) |
25 result = result.concat(findAllDescendantsWithRole(axObject.child
AtIndex(i), role)); | 25 result = result.concat(findAllDescendantsWithRole(axObject.child
AtIndex(i), role)); |
26 return result; | 26 return result; |
27 } | 27 } |
28 | 28 |
29 var axInput = accessibilityController.accessibleElementById('input'); | 29 var axInput = accessibilityController.accessibleElementById('input'); |
30 var axDiv = axInput.childAtIndex(0); | 30 var axDiv = axInput.childAtIndex(0); |
31 var axStaticText = axDiv.childAtIndex(0); | 31 var axStaticText = axDiv.childAtIndex(0); |
32 var axInlineTextBox = axStaticText.childAtIndex(0); | 32 var axInlineTextBox = axStaticText.childAtIndex(0); |
33 shouldBe("axInlineTextBox.role", "'AXRole: AXInlineTextBox'"); | 33 shouldBe("axInlineTextBox.role", "'AXRole: AXInlineTextBox'"); |
34 shouldBe("axInlineTextBox.stringValue", "'AXValue: Value'"); | 34 shouldBe("axInlineTextBox.name", "'Value'"); |
35 } | 35 } |
36 </script> | 36 </script> |
37 | 37 |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |