| <script src="../resources/js-test.js"></script> |
| return spaces.substr(0, count); |
| function dumpObject(axObject) { |
| debug(indent(indentLevel) + "role: " + axObject.role); |
| if (axObject.subrole && axObject.subrole != 'AXSubrole: ') debug(indent(indentLevel) + "subrole: " + axObject.subrole); |
| function dumpChildren(axObject) { |
| var count = axObject.childrenCount |
| for (var ndx = 0; ndx < count; ndx++) { |
| var childAXObject = axObject.childAtIndex(ndx); |
| dumpObject(childAXObject); |
| if (childAXObject.childrenCount) { |
| // don't bother dumping static text children |
| if (childAXObject.role != "AXRole: AXStaticText") |
| dumpChildren(childAXObject); |
| if (!window.accessibilityController) |
| var table = accessibilityController.accessibleElementById("table1"); |
| <body onload="dumpTableAX()"> |
| <p>This shows the hierarchy of table roles.</p> |