[AX][ATK] AccessibilityObject representing ProgressBar element should be ATK_VALUE type
https://bugs.webkit.org/show_bug.cgi?id=121023
Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-09-09
Reviewed by Mario Sanchez Prada.
Source/WebCore:
Test: accessibility/progressbar.html
ProgressBar element should support ATK_VALUE interface.
* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(getInterfaceMaskFromObject):
Tools:
Added mappings to ATK's ProgressBar element.
* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
(roleToString):
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::roleToString):
LayoutTests:
Sharing progressbar.html specific mac test with efl and gtk.
* accessibility/progressbar-expected.txt: Renamed from LayoutTests/platform/mac/accessibility/progressbar-expected.txt.
* accessibility/progressbar.html: Renamed from LayoutTests/platform/mac/accessibility/progressbar.html.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp b/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
index b38b229..3e233df 100644
--- a/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
+++ b/Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
@@ -1033,7 +1033,7 @@
interfaceMask |= 1 << WAI_DOCUMENT;
// Value
- if (role == SliderRole || role == SpinButtonRole || role == ScrollBarRole)
+ if (role == SliderRole || role == SpinButtonRole || role == ScrollBarRole || role == ProgressIndicatorRole)
interfaceMask |= 1 << WAI_VALUE;
#if ENABLE(INPUT_TYPE_COLOR)