haikuwebkit/LayoutTests/accessibility/treeitem-child-exposed-expe...

16 lines
321 B
Plaintext
Raw Permalink Normal View History

This tests if a treeitem contains an element other than static text, it should be exposed
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
AX: VoiceOver unable to access content in malformed trees https://bugs.webkit.org/show_bug.cgi?id=147295 <rdar://problem/14862892> Patch by Nan Wang <n_wang@apple.com> on 2015-07-30 Reviewed by Chris Fleizach. Source/WebCore: VoiceOver is skipping the content of malformed trees. This fixes the problem by having the tree check if it has valid children (treeitems) and makes treeitems check if they are inside trees. Test: platform/mac/accessibility/malformed-tree.html * CMakeLists.txt: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * accessibility/AXObjectCache.cpp: (WebCore::createFromRenderer): * accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::addChildren): (WebCore::AccessibilityObject::addChild): (WebCore::AccessibilityObject::insertChild): (WebCore::AccessibilityObject::shouldIgnoreAttributeRole): (WebCore::AccessibilityObject::canHaveChildren): (WebCore::AccessibilityObject::hasChildren): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::determineAccessibilityRole): * accessibility/AccessibilityTree.cpp: Added. (WebCore::AccessibilityTree::AccessibilityTree): (WebCore::AccessibilityTree::~AccessibilityTree): (WebCore::AccessibilityTree::create): (WebCore::AccessibilityTree::computeAccessibilityIsIgnored): (WebCore::AccessibilityTree::determineAccessibilityRole): (WebCore::AccessibilityTree::isTreeValid): * accessibility/AccessibilityTree.h: Added. * accessibility/AccessibilityTreeItem.cpp: Added. (WebCore::AccessibilityTreeItem::AccessibilityTreeItem): (WebCore::AccessibilityTreeItem::~AccessibilityTreeItem): (WebCore::AccessibilityTreeItem::create): (WebCore::AccessibilityTreeItem::determineAccessibilityRole): * accessibility/AccessibilityTreeItem.h: Added. LayoutTests: * accessibility/aria-mappings.html: * accessibility/treeitem-child-exposed-expected.txt: * accessibility/treeitem-child-exposed.html: * platform/mac/accessibility/malformed-tree-expected.txt: Added. * platform/mac/accessibility/malformed-tree.html: Added. Canonical link: https://commits.webkit.org/165525@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-30 11:10:38 +00:00
PASS tree.childrenCount is 3
PASS inputField.isValid is true
PASS inputField3.isValid is true
PASS successfullyParsed is true
TEST COMPLETE