[ATK] Allowing the use of AccessibilityUIElement::columnHeaders method for table.
[WebKit-https.git] / LayoutTests / accessibility / table-column-headers-with-captions.html
index 7bf7cf9..5064ffc 100644 (file)
 
         var table = accessibilityController.accessibleElementById("table");
         var colHeaders = table.columnHeaders();
-
-        shouldBeTrue("colHeaders[0].isEqual(table.rowAtIndex(0).childAtIndex(0))");
-        shouldBeTrue("colHeaders[1].isEqual(table.rowAtIndex(0).childAtIndex(1))");
+        if (accessibilityController.platformName == "atk") {
+            shouldBeTrue("colHeaders[0].isEqual(table.cellForColumnAndRow(0,0))");
+            shouldBeTrue("colHeaders[1].isEqual(table.cellForColumnAndRow(1,0))");
+        } else {
+            shouldBeTrue("colHeaders[0].isEqual(table.rowAtIndex(0).childAtIndex(0))");
+            shouldBeTrue("colHeaders[1].isEqual(table.rowAtIndex(0).childAtIndex(1))");
+        }
     }
 
 </script>