Title: [206391] trunk
Revision 206391
Author n_w...@apple.com
Date 2016-09-26 14:02:42 -0700 (Mon, 26 Sep 2016)
Log Message
AX: Progress: [Mac] Content in label element should be used as AXTitle or AXDescription
https://bugs.webkit.org/show_bug.cgi?id=162573
Reviewed by Chris Fleizach.
Source/WebCore:
Exposed the label element's text as the AXTitle of the progress indicator.
Test: accessibility/mac/progress-with-label-element.html
* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::titleElementText):
(WebCore::AccessibilityNodeObject::title):
LayoutTests:
* accessibility/mac/progress-with-label-element-expected.txt: Added.
* accessibility/mac/progress-with-label-element.html: Added.
Modified Paths
trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
Added Paths
trunk/LayoutTests/accessibility/mac/progress-with-label-element-expected.txt
trunk/LayoutTests/accessibility/mac/progress-with-label-element.html
Diff
Modified: trunk/LayoutTests/ChangeLog (206390 => 206391)
--- trunk/LayoutTests/ChangeLog 2016-09-26 20:39:57 UTC (rev 206390)
+++ trunk/LayoutTests/ChangeLog 2016-09-26 21:02:42 UTC (rev 206391)
@@ -1,3 +1,13 @@
+2016-09-26 Nan Wang
+
+AX: Progress: [Mac] Content in label element should be used as AXTitle or AXDescription
+https://bugs.webkit.org/show_bug.cgi?id=162573
+
+Reviewed by Chris Fleizach.
+
+* accessibility/mac/progress-with-label-element-expected.txt: Added.
+* accessibility/mac/progress-with-label-element.html: Added.
+
2016-09-26 Ryan Haddad
Marking media/media-controls-drag-timeline-set-controls-property.html as flaky on Yosemite Debug WK2.
Added: trunk/LayoutTests/accessibility/mac/progress-with-label-element-expected.txt (0 => 206391)
--- trunk/LayoutTests/accessibility/mac/progress-with-label-element-expected.txt (rev 0)
+++ trunk/LayoutTests/accessibility/mac/progress-with-label-element-expected.txt 2016-09-26 21:02:42 UTC (rev 206391)
@@ -0,0 +1,13 @@
+label label wrapping output
+This tests that for progress elements, label should be used as accessible name and title should be used as accessible description.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS prog1.title is 'AXTitle: label'
+PASS prog1.helpText is 'AXHelp: title'
+PASS prog2.title is 'AXTitle: label wrapping output'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/accessibility/mac/progress-with-label-element.html (0 => 206391)
--- trunk/LayoutTests/accessibility/mac/progress-with-label-element.html (rev 0)
+++ trunk/LayoutTests/accessibility/mac/progress-with-label-element.html 2016-09-26 21:02:42 UTC (rev 206391)
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+