haikuwebkit/LayoutTests/accessibility/table-cells-roles-expected.txt

32 lines
957 B
Plaintext
Raw Permalink Normal View History

[ATK] Improve AccessibilityTableCell's determineAccessibilityRole function. https://bugs.webkit.org/show_bug.cgi?id=137737 Patch by Andrzej Badowski <a.badowski@samsung.com> on 2014-10-31 Reviewed by Chris Fleizach. Source/WebCore: Use of new functions isRowHeaderCell and isColumnHeaderCell (bug 136818) to more accurately determine accessibility role of the table cell. Test: accessibility/table-cells-roles.html * accessibility/AccessibilityARIAGridCell.cpp: (WebCore::AccessibilityARIAGridCell::rowIndexRange): Change to const. * accessibility/AccessibilityARIAGridCell.h: Change rowIndexRange function to const. * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): Use of isRowHeaderCell and isColumnHeaderCell to more accurately determine accessibility role (ATK). (WebCore::AccessibilityTableCell::isColumnHeaderCell): Add a case of direct placement a row in the table. (WebCore::AccessibilityTableCell::isRowHeaderCell): Add a case of direct placement a row in the table. (WebCore::AccessibilityTableCell::rowIndexRange): Change to const. * accessibility/AccessibilityTableCell.h: Change rowIndexRange function to const. LayoutTests: The new test illustrates the different cases deciding whether a table cell is a row header or column header or just a table cell. Files of expected type and one html type are adapted to changes in the code of several member functions of AccessibilityTableCell, i.e determineAccessibilityRole, isColumnHeaderCell, isRowHeaderCell. * accessibility/table-cells-roles-expected.txt: Added. * accessibility/table-cells-roles.html: Added. * platform/efl/accessibility/table-attributes-expected.txt: * platform/efl/accessibility/table-cells-expected.txt: * platform/gtk/accessibility/table-attributes-expected.txt: * platform/gtk/accessibility/table-cells-expected.txt: * platform/gtk/accessibility/table-hierarchy-expected.txt: * platform/gtk/accessibility/table-hierarchy.html: Canonical link: https://commits.webkit.org/156082@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-31 12:45:55 +00:00
table
No Country Capital
1. Poland Warsaw
2. Russia Moscow
3. Ukraine Kiev
All 3 countries 3 capitals
table2
No Country Capital
1. Germany Berlin
2. Sweden Stockholm
3. Norway Oslo
This test checks the correctness of roles for different cases of table cells.
The table cell at (2,0) currently has role AXRole: AXColumnHeader .
The table cell at (1,2) currently has role AXRole: AXCell .
The table cell at (2,3) currently has role AXRole: AXCell .
The table cell at (1,4) currently has role AXRole: AXCell .
The table cell at (0,2) currently has role AXRole: AXRowHeader .
The table cell at (0,4) currently has role AXRole: AXRowHeader .
[ATK] Improve AccessibilityTableCell's determineAccessibilityRole function. https://bugs.webkit.org/show_bug.cgi?id=137737 Patch by Andrzej Badowski <a.badowski@samsung.com> on 2014-10-31 Reviewed by Chris Fleizach. Source/WebCore: Use of new functions isRowHeaderCell and isColumnHeaderCell (bug 136818) to more accurately determine accessibility role of the table cell. Test: accessibility/table-cells-roles.html * accessibility/AccessibilityARIAGridCell.cpp: (WebCore::AccessibilityARIAGridCell::rowIndexRange): Change to const. * accessibility/AccessibilityARIAGridCell.h: Change rowIndexRange function to const. * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): Use of isRowHeaderCell and isColumnHeaderCell to more accurately determine accessibility role (ATK). (WebCore::AccessibilityTableCell::isColumnHeaderCell): Add a case of direct placement a row in the table. (WebCore::AccessibilityTableCell::isRowHeaderCell): Add a case of direct placement a row in the table. (WebCore::AccessibilityTableCell::rowIndexRange): Change to const. * accessibility/AccessibilityTableCell.h: Change rowIndexRange function to const. LayoutTests: The new test illustrates the different cases deciding whether a table cell is a row header or column header or just a table cell. Files of expected type and one html type are adapted to changes in the code of several member functions of AccessibilityTableCell, i.e determineAccessibilityRole, isColumnHeaderCell, isRowHeaderCell. * accessibility/table-cells-roles-expected.txt: Added. * accessibility/table-cells-roles.html: Added. * platform/efl/accessibility/table-attributes-expected.txt: * platform/efl/accessibility/table-cells-expected.txt: * platform/gtk/accessibility/table-attributes-expected.txt: * platform/gtk/accessibility/table-cells-expected.txt: * platform/gtk/accessibility/table-hierarchy-expected.txt: * platform/gtk/accessibility/table-hierarchy.html: Canonical link: https://commits.webkit.org/156082@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-31 12:45:55 +00:00
The table2 cell at (2,0) currently has role AXRole: AXColumnHeader .
The table2 cell at (1,2) currently has role AXRole: AXCell .
The table2 cell at (2,3) currently has role AXRole: AXCell .
The table2 cell at (0,2) currently has role AXRole: AXRowHeader .
PASS successfullyParsed is true
TEST COMPLETE
[ATK] Improve AccessibilityTableCell's determineAccessibilityRole function. https://bugs.webkit.org/show_bug.cgi?id=137737 Patch by Andrzej Badowski <a.badowski@samsung.com> on 2014-10-31 Reviewed by Chris Fleizach. Source/WebCore: Use of new functions isRowHeaderCell and isColumnHeaderCell (bug 136818) to more accurately determine accessibility role of the table cell. Test: accessibility/table-cells-roles.html * accessibility/AccessibilityARIAGridCell.cpp: (WebCore::AccessibilityARIAGridCell::rowIndexRange): Change to const. * accessibility/AccessibilityARIAGridCell.h: Change rowIndexRange function to const. * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): Use of isRowHeaderCell and isColumnHeaderCell to more accurately determine accessibility role (ATK). (WebCore::AccessibilityTableCell::isColumnHeaderCell): Add a case of direct placement a row in the table. (WebCore::AccessibilityTableCell::isRowHeaderCell): Add a case of direct placement a row in the table. (WebCore::AccessibilityTableCell::rowIndexRange): Change to const. * accessibility/AccessibilityTableCell.h: Change rowIndexRange function to const. LayoutTests: The new test illustrates the different cases deciding whether a table cell is a row header or column header or just a table cell. Files of expected type and one html type are adapted to changes in the code of several member functions of AccessibilityTableCell, i.e determineAccessibilityRole, isColumnHeaderCell, isRowHeaderCell. * accessibility/table-cells-roles-expected.txt: Added. * accessibility/table-cells-roles.html: Added. * platform/efl/accessibility/table-attributes-expected.txt: * platform/efl/accessibility/table-cells-expected.txt: * platform/gtk/accessibility/table-attributes-expected.txt: * platform/gtk/accessibility/table-cells-expected.txt: * platform/gtk/accessibility/table-hierarchy-expected.txt: * platform/gtk/accessibility/table-hierarchy.html: Canonical link: https://commits.webkit.org/156082@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-31 12:45:55 +00:00