haikuwebkit/LayoutTests/accessibility/gtk/interface-table-cell-expect...

38 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

This tests whether or not table-related elements implement the table cell interface.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
test1 AXRole: AXTable false
test2 AXRole: AXRow false
test3 AXRole: AXColumnHeader true
test4 AXRole: AXColumnHeader true
test5 AXRole: AXRow false
test6 AXRole: AXRowHeader true
test7 AXRole: AXCell true
test8 AXRole: AXTable false
test9 AXRole: AXRow false
test10 AXRole: AXColumnHeader true
test11 AXRole: AXColumnHeader true
test12 AXRole: AXRow false
test13 AXRole: AXRowHeader true
test14 AXRole: AXCell true
[ATK] ARIA treegrid role should be exposed as ATK_ROLE_TREE_TABLE; not ATK_ROLE_TABLE https://bugs.webkit.org/show_bug.cgi?id=171170 Reviewed by Chris Fleizach. Source/WebCore: AccessibilityTable::roleValue() was returning GridRole for both grid and treegrid. Change this so that GridRole is returned for grid and TreeGridRole is returned for treegrid. Add TreeGridRole to, or call isTable() in, methods where the behavior should be the same as GridRole. Test: accessibility/gtk/interface-table.html * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (atkRole): (getInterfaceMaskFromObject): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): Tools: Add "AXInterfaceTable" attribute to test which elements implement AtkTable. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::boolAttributeValue): LayoutTests: Add interface-table.html to verify that all roles which have tabular functionality implement AtkTable. Update other tests to reflect that the ARIA treegrid role maps to our internal TreeGridRole AccessibilityRole. * accessibility/gtk/interface-table-cell-expected.txt: Updated. * accessibility/gtk/interface-table-expected.txt: Added. * accessibility/gtk/interface-table.html: Added. * accessibility/roles-computedRoleString.html: Updated. * platform/gtk/accessibility/aria-selected-expected.txt: Updated. * platform/gtk/accessibility/roles-exposed-expected.txt: Updated. * platform/mac/accessibility/roles-computedRoleString-expected.txt: Updated. Canonical link: https://commits.webkit.org/188379@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-04-30 18:11:56 +00:00
test15 AXRole: AXTreeGrid false
test16 AXRole: AXRow false
test17 AXRole: AXColumnHeader true
test18 AXRole: AXColumnHeader true
test19 AXRole: AXRow false
test20 AXRole: AXRowHeader true
test21 AXRole: AXCell true
test22 AXRole: AXTable false
test23 AXRole: AXRow false
test24 AXRole: AXColumnHeader true
test25 AXRole: AXColumnHeader true
test26 AXRole: AXRow false
test27 AXRole: AXRowHeader true
test28 AXRole: AXCell true
PASS successfullyParsed is true
TEST COMPLETE