haikuwebkit/LayoutTests/accessibility/roles-table-and-cell-expect...

15 lines
349 B
Plaintext
Raw Permalink Normal View History

Source/WebCore: Added ARIA 1.1 "cell" and "table" roles. https://bugs.webkit.org/show_bug.cgi?id=146011 <rdar://problem/21398946> Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Created a new role called GridCellRole to match the gridcell role, so the previous CellRole and TableRole will match to cell and table role. Made the changes to make sure that both GridRole and TableRole have same behavior, as well as the circumstance for GridCellRole and CellRole. Test: accessibility/roles-table-and-cell.html * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::supportsRequiredAttribute): (WebCore::AccessibilityNodeObject::canSetSelectedAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::setSelectedRows): (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Added tests for new role: table and cell. https://bugs.webkit.org/show_bug.cgi?id=146011. Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Added tests for table and cell role. Also modified other tests to fit the changes. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibilit/roles-table-and-cell-expected.txt: Added. * accessibility/roles-table-and-cell.html: Added. * platform/mac/accessibility/aria-table-hierarchy-expected.txt: * platform/mac/accessibility/aria-tables-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/164929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-10 22:04:50 +00:00
This tests that table and cell have the correct ARIA roles
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS: div[role="grid"] -> grid.
PASS: table[role="table"] -> table.
PASS: td[role="gridcell"] -> gridcell.
PASS: td -> cell.
PASS: td[role="cell"] -> cell.
Source/WebCore: Added ARIA 1.1 "cell" and "table" roles. https://bugs.webkit.org/show_bug.cgi?id=146011 <rdar://problem/21398946> Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Created a new role called GridCellRole to match the gridcell role, so the previous CellRole and TableRole will match to cell and table role. Made the changes to make sure that both GridRole and TableRole have same behavior, as well as the circumstance for GridCellRole and CellRole. Test: accessibility/roles-table-and-cell.html * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::supportsRequiredAttribute): (WebCore::AccessibilityNodeObject::canSetSelectedAttribute): * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::setSelectedRows): (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): (WebCore::AccessibilityRenderObject::selectedChildren): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::roleValue): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::determineAccessibilityRole): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]): (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (createAccessibilityRoleMap): LayoutTests: Added tests for new role: table and cell. https://bugs.webkit.org/show_bug.cgi?id=146011. Patch by Nan Wang <n_wang@apple.com> on 2015-07-10 Reviewed by Chris Fleizach. Added tests for table and cell role. Also modified other tests to fit the changes. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * accessibilit/roles-table-and-cell-expected.txt: Added. * accessibility/roles-table-and-cell.html: Added. * platform/mac/accessibility/aria-table-hierarchy-expected.txt: * platform/mac/accessibility/aria-tables-expected.txt: * platform/mac/accessibility/roles-exposed-expected.txt: Canonical link: https://commits.webkit.org/164929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-10 22:04:50 +00:00
PASS successfullyParsed is true
TEST COMPLETE