Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GTK] accessibility/meter-element.html is failing
https://bugs.webkit.org/show_bug.cgi?id=115633 Reviewed by Chris Fleizach. Source/WebCore: The meter's value description should be exposed in the same fashion as (we should have been exposing) aria-valuetext, namely through the "valuetext" AtkObject attribute. This exposure is now in place. Also implement AccessibilityProgressIndicator::valueDescription() so that the ports do not have to special-case meter in the platform wrappers. Map the meter element to the correct role (ATK_ROLE_LEVEL_BAR), and ignore a previously-included accessible object resulting from the use of the title attribute on a meter. Finally, do not expose the meter's title as the accessible name because the HTML spec suggests authors can supply the numeric unit as the value of title. No new test file as the failure was identified by meter-element.html. Seven new test cases were added for additional coverage. Also updated the ATK expectations for spinbutton-value.html to reflect that we are now exposing the value of aria-valuetext. * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::helpText): (WebCore::AccessibilityNodeObject::accessibilityDescriptionForChildren): (WebCore::AccessibilityNodeObject::visibleText): * accessibility/AccessibilityNodeObject.h: * accessibility/AccessibilityProgressIndicator.cpp: (WebCore::AccessibilityProgressIndicator::valueDescription): * accessibility/AccessibilityProgressIndicator.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored): * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (webkitAccessibleGetAttributes): (atkRole): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Tools: Implement AccessibilityUIElement::valueDescription() and add mapping from ATK_ROLE_LEVEL_BAR to AXProgressIndicator. * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::valueDescription): LayoutTests: Seven new test cases were added to meter-element.html for additional coverage. Also updated the ATK expectations for spinbutton-value.html to reflect that we are now exposing the value of aria-valuetext. * accessibility/meter-element.html: New test cases added. * platform/gtk/TestExpectations: Unskip the previously-failing test. * platform/gtk/accessibility/meter-element-expected.txt: Updated. * platform/gtk/accessibility/spinbutton-value-expected.txt: Updated. * platform/mac/accessibility/meter-element-expected.txt: Updated. Canonical link: https://commits.webkit.org/175968@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
16 changed files
with
338 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,12 +1,121 @@ | ||
CONSOLE MESSAGE: line 25: TypeError: undefined is not an object (evaluating 'meter.role') | ||
|
||
This tests that the meter element is accessible. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
Meter1 | ||
FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined). | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 6 blocks used (out of 8 total) | ||
AXValueSettable: false | ||
|
||
|
||
Meter2 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75% | ||
AXValueSettable: false | ||
|
||
|
||
Meter3 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: | ||
AXValueSettable: false | ||
|
||
|
||
Meter4 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 12cm | ||
AXValueSettable: false | ||
|
||
|
||
Meter5 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 2cm | ||
AXValueSettable: false | ||
|
||
|
||
Meter6 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: centimeters | ||
AXValueDescription: 12cm | ||
AXValueSettable: false | ||
|
||
|
||
Meter7 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: centimeters | ||
AXValueDescription: 2cm | ||
AXValueSettable: false | ||
|
||
|
||
Meter8 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75 out of 100 | ||
AXValueSettable: false | ||
|
||
|
||
Meter9 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75 percent | ||
AXValueSettable: false | ||
|
||
|
||
Meter10 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75 percent | ||
AXValueSettable: false | ||
|
||
|
||
Meter11 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75 (100 total) | ||
AXValueSettable: false | ||
|
||
|
||
Meter12 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75 (out of 100 total) | ||
AXValueSettable: false | ||
|
||
|
||
Meter13 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 75 (out of 100 total) | ||
AXValueSettable: false | ||
|
||
|
||
Meter14 | ||
AXRole: AXProgressIndicator | ||
AXTitle: | ||
AXDescription: | ||
AXValueDescription: 7 of 10 | ||
AXValueSettable: false | ||
|
||
|
||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.