[Win] The test accessibility/aria-labelledby-overrides-label.html is failing.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Jun 2016 05:20:11 +0000 (05:20 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Jun 2016 05:20:11 +0000 (05:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=159057

Reviewed by Brent Fulgham.

The test expects the label to have a static text role, but currently it has a
group role.

* AccessibleBase.cpp:
(MSAARole): Change the role of labels to static text.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202417 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/win/AccessibleBase.cpp
Source/WebKit/win/ChangeLog

index 947409f..b97433a 100644 (file)
@@ -879,6 +879,7 @@ static long MSAARole(AccessibilityRole role)
         case WebCore::HeadingRole:
         case WebCore::ListMarkerRole:
         case WebCore::StaticTextRole:
+        case WebCore::LabelRole:
             return ROLE_SYSTEM_STATICTEXT;
         case WebCore::OutlineRole:
             return ROLE_SYSTEM_OUTLINE;
@@ -917,7 +918,6 @@ static long MSAARole(AccessibilityRole role)
         case WebCore::DivRole:
         case WebCore::FooterRole:
         case WebCore::FormRole:
-        case WebCore::LabelRole:
         case WebCore::ParagraphRole:
             return ROLE_SYSTEM_GROUPING;
         case WebCore::HorizontalRuleRole:
index 5b52317..9ff2c9e 100644 (file)
@@ -1,3 +1,16 @@
+2016-06-23  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win] The test accessibility/aria-labelledby-overrides-label.html is failing.
+        https://bugs.webkit.org/show_bug.cgi?id=159057
+
+        Reviewed by Brent Fulgham.
+
+        The test expects the label to have a static text role, but currently it has a
+        group role.
+        * AccessibleBase.cpp:
+        (MSAARole): Change the role of labels to static text.
+
 2016-06-23  Alex Christensen  <achristensen@webkit.org>
 
         Remove unused didCancelAuthenticationChallenge