| Index: LayoutTests/accessibility/table-header-column-row.html
|
| diff --git a/LayoutTests/accessibility/table-header-column-row.html b/LayoutTests/accessibility/table-header-column-row.html
|
| index 2e57686aa79878f1bf7a748f9cdd558592171c83..815ecf6a4f64647d689ecdfd97a0912096f097bc 100644
|
| --- a/LayoutTests/accessibility/table-header-column-row.html
|
| +++ b/LayoutTests/accessibility/table-header-column-row.html
|
| @@ -1,4 +1,5 @@
|
| <script src="../resources/js-test.js"></script>
|
| +<script src="../resources/accessibility-helper.js"></script>
|
| <table width="50%" border="1">
|
| <caption>
|
| scope test
|
| @@ -99,36 +100,7 @@ description("This tests that AXRoles for header cells are assigned.");
|
|
|
| if (window.testRunner)
|
| testRunner.dumpAsText();
|
| -
|
| -function buildAccessibilityTree(accessibilityObject, indent) {
|
| - if (accessibilityObject.role == 'AXRole: AXColumn' || accessibilityObject.role == 'AXRole: AXTableHeaderContainer')
|
| - return true;
|
| - var str = "";
|
| - for (var i = 0; i < indent; i++)
|
| - str += " ";
|
| - str += accessibilityObject.role;
|
| - str += " " + accessibilityObject.stringValue;
|
| -
|
| - if (accessibilityObject.role == '')
|
| - str += accessibilityObject.allAttributes();
|
| -
|
| - str += "\n";
|
| - document.getElementById("console").innerText += str;
|
| -
|
| - if (accessibilityObject.stringValue.indexOf('End of test') >= 0)
|
| - return false;
|
| -
|
| - var count = accessibilityObject.childrenCount;
|
| - for (var i = 0; i < count; ++i) {
|
| - if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), indent + 1))
|
| - return false;
|
| - }
|
| -
|
| - return true;
|
| -}
|
| -
|
| if (window.accessibilityController) {
|
| - var body = accessibilityController.focusedElement;
|
| - buildAccessibilityTree(body, 0);
|
| + buildAccessibilityTree(accessibilityController.focusedElement, 0, 1);
|
| }
|
| </script>
|
|
|