[ATK] Expose aria-haspopup and aria-sort without the 'aria-' prefix
authormario@webkit.org <mario@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Sep 2013 08:28:59 +0000 (08:28 +0000)
committermario@webkit.org <mario@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Sep 2013 08:28:59 +0000 (08:28 +0000)
commit84ae0bfb7dac975d075be99c2fe75a1637b0bb80
treeabad926136b0b9f6360d54bf4f2bbcf7a06b363f
parentb5b35070614045b64630ac9bb7cb9b18f4025b62
[ATK] Expose aria-haspopup and aria-sort without the 'aria-' prefix
https://bugs.webkit.org/show_bug.cgi?id=121495

Reviewed by Chris Fleizach.

Source/WebCore:

Removed the 'aria-' prefix from the exposed ATK object attributes
for WAI-ARIA attributes 'aria-haspopup' and 'aria-sort'.

* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(webkitAccessibleGetAttributes): Removed the prefix.

Tools:

Adapted DRT and WKTR to deal with the new names for the ATK object
attributes being exposed for 'aria-haspopup' and 'aria-sort'.

* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
(coreAttributeToAtkAttribute): Updated translation between ATK and DRT.
(AccessibilityUIElement::stringAttributeValue): Ditto.
(AccessibilityUIElement::hasPopup): Ditto.
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::coreAttributeToAtkAttribute): Updated translation between ATK and WKTR.
(WTR::AccessibilityUIElement::stringAttributeValue): Ditto.
(WTR::AccessibilityUIElement::hasPopup): Ditto.

LayoutTests:

Rebaseline test expectations that were displaying the 'aria-sort'
attributes incorrectly, when they shouldn't due to that ARIA
attribute not being explicitly used in the HTML.

* platform/efl-wk1/accessibility/lists-expected.txt: Removed output for 'aria-sort'.
* platform/efl-wk1/accessibility/plugin-expected.txt: Ditto.
* platform/efl-wk1/accessibility/table-with-aria-role-expected.txt: Ditto.
* platform/efl-wk1/accessibility/transformed-element-expected.txt: Ditto.
* platform/efl-wk2/accessibility/image-link-expected.txt: Ditto.
* platform/efl-wk2/accessibility/image-map2-expected.txt: Ditto.
* platform/efl-wk2/accessibility/lists-expected.txt: Ditto.
* platform/efl-wk2/accessibility/plugin-expected.txt: Ditto.
* platform/efl-wk2/accessibility/table-cell-spans-expected.txt: Ditto.
* platform/efl-wk2/accessibility/table-cells-expected.txt: Ditto.
* platform/efl-wk2/accessibility/table-with-aria-role-expected.txt: Ditto.
* platform/efl-wk2/accessibility/transformed-element-expected.txt: Ditto.
* platform/gtk/accessibility/image-link-expected.txt: Ditto.
* platform/gtk/accessibility/image-map2-expected.txt: Ditto.
* platform/gtk/accessibility/lists-expected.txt: Ditto.
* platform/gtk/accessibility/plugin-expected.txt: Ditto.
* platform/gtk/accessibility/table-cell-spans-expected.txt: Ditto.
* platform/gtk/accessibility/table-cells-expected.txt: Ditto.
* platform/gtk/accessibility/table-detection-expected.txt: Ditto.
* platform/gtk/accessibility/table-one-cell-expected.txt: Ditto.
* platform/gtk/accessibility/table-with-aria-role-expected.txt: Ditto.
* platform/gtk/accessibility/table-with-rules-expected.txt: Ditto.
* platform/gtk/accessibility/transformed-element-expected.txt: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
29 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/efl-wk1/accessibility/lists-expected.txt
LayoutTests/platform/efl-wk1/accessibility/plugin-expected.txt
LayoutTests/platform/efl-wk1/accessibility/table-with-aria-role-expected.txt
LayoutTests/platform/efl-wk1/accessibility/transformed-element-expected.txt
LayoutTests/platform/efl-wk2/accessibility/image-link-expected.txt
LayoutTests/platform/efl-wk2/accessibility/image-map2-expected.txt
LayoutTests/platform/efl-wk2/accessibility/lists-expected.txt
LayoutTests/platform/efl-wk2/accessibility/plugin-expected.txt
LayoutTests/platform/efl-wk2/accessibility/table-cell-spans-expected.txt
LayoutTests/platform/efl-wk2/accessibility/table-cells-expected.txt
LayoutTests/platform/efl-wk2/accessibility/table-with-aria-role-expected.txt
LayoutTests/platform/efl-wk2/accessibility/transformed-element-expected.txt
LayoutTests/platform/gtk/accessibility/image-link-expected.txt
LayoutTests/platform/gtk/accessibility/image-map2-expected.txt
LayoutTests/platform/gtk/accessibility/lists-expected.txt
LayoutTests/platform/gtk/accessibility/plugin-expected.txt
LayoutTests/platform/gtk/accessibility/table-cell-spans-expected.txt
LayoutTests/platform/gtk/accessibility/table-cells-expected.txt
LayoutTests/platform/gtk/accessibility/table-detection-expected.txt
LayoutTests/platform/gtk/accessibility/table-one-cell-expected.txt
LayoutTests/platform/gtk/accessibility/table-with-aria-role-expected.txt
LayoutTests/platform/gtk/accessibility/table-with-rules-expected.txt
LayoutTests/platform/gtk/accessibility/transformed-element-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
Tools/ChangeLog
Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp
Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp