Changeset 148484 in webkit
- Timestamp:
- Apr 15, 2013 6:34:20 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r148483 r148484 1 2013-04-15 James Craig <james@cookiecrook.com> 2 3 WebKit should not expose AXSubrole:AXDescriptionList on Mountain Lion as it causes a regression in VoiceOver behavior 4 https://bugs.webkit.org/show_bug.cgi?id=113975 5 6 Reviewed by Chris Fleizach. 7 8 Serve NSAccessibilityDescriptionListSubrole or NSAccessibilityDefinitionListSubrole 9 depending on platform. Updated existing test coverage. 10 11 * platform/mac/accessibility/lists-expected.txt: 12 * platform/mac/accessibility/role-subrole-roledescription-expected.txt: 13 * platform/mac/accessibility/role-subrole-roledescription.html: 14 1 15 2013-04-15 Anders Carlsson <andersca@apple.com> 2 16 -
trunk/LayoutTests/platform/mac/accessibility/lists-expected.txt
r147520 r148484 69 69 ------------ 70 70 AXRole: AXList 71 AXSubrole: AXDe scriptionList71 AXSubrole: AXDefinitionList 72 72 AXRoleDescription: description list 73 73 AXChildren: <array of size 5> -
trunk/LayoutTests/platform/mac/accessibility/role-subrole-roledescription-expected.txt
r147520 r148484 87 87 PASS: dl 88 88 AXRole: AXList 89 AXSubrole: AXDe scriptionList89 AXSubrole: AXDefinitionList 90 90 AXRoleDescription: description list 91 91 -
trunk/LayoutTests/platform/mac/accessibility/role-subrole-roledescription.html
r147520 r148484 28 28 <!-- skipped <details/summary> http://webkit.org/b/108979 --> 29 29 <!-- <dfn> http://webkit.org/b/108980 --><dfn data-role="" data-subrole="" data-roledescription="" class="ex">X</dfn> 30 <dl data-role="AXList" data-subrole="AXDescriptionList" data- roledescription="description list" class="ex">30 <dl data-role="AXList" data-subrole="AXDescriptionList" data-alternatesubrole="AXDefinitionList" data-roledescription="description list" class="ex"> 31 31 <dt data-role="AXGroup" data-subrole="AXTerm" data-roledescription="term" class="ex">X</dt> 32 32 <dd data-role="AXGroup" data-subrole="AXDescription" data-roledescription="description" class="ex">X</dd> … … 311 311 output += roleDescription + indent; 312 312 313 expectation = el.getAttribute('data-role') +"/"+ el.getAttribute('data-subrole') +"/"+ el.getAttribute('data-roledescription'); 313 expectation = el.getAttribute('data-role') + "/"; 314 expectation += el.getAttribute('data-subrole'); 315 if (el.getAttribute('data-alternatesubrole')) expectation += " or " + el.getAttribute('data-alternatesubrole'); 316 expectation += "/" + el.getAttribute('data-roledescription'); 314 317 315 318 result = document.getElementById('console'); … … 317 320 // Test AXRole, AXSubrole, and AXRoleDescription. 318 321 if (role.replace('AXRole: ','') == el.getAttribute('data-role') 319 && subrole.replace('AXSubrole: ','') == el.getAttribute('data-subrole')322 && (subrole.replace('AXSubrole: ','') == el.getAttribute('data-subrole') || subrole.replace('AXSubrole: ','') == el.getAttribute('data-alternatesubrole')) 320 323 && roleDescription.replace('AXRoleDescription: ','') == el.getAttribute('data-roledescription')) { 321 324 result.innerText += "PASS: " + output + "\n"; -
trunk/Source/WebCore/ChangeLog
r148482 r148484 1 2013-04-15 James Craig <james@cookiecrook.com> 2 3 WebKit should not expose AXSubrole:AXDescriptionList on Mountain Lion as it causes a regression in VoiceOver behavior 4 https://bugs.webkit.org/show_bug.cgi?id=113975 5 6 Reviewed by Chris Fleizach. 7 8 Serve NSAccessibilityDescriptionListSubrole or NSAccessibilityDefinitionListSubrole 9 depending on platform. Updated existing test coverage. 10 11 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: 12 (-[WebAccessibilityObjectWrapper subrole]): 13 1 14 2013-04-15 Dean Jackson <dino@apple.com> 2 15 -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
r148044 r148484 110 110 #ifndef NSAccessibilityContentListSubrole 111 111 #define NSAccessibilityContentListSubrole @"AXContentList" 112 #endif 113 114 #ifndef NSAccessibilityDefinitionListSubrole 115 #define NSAccessibilityDefinitionListSubrole @"AXDefinitionList" 112 116 #endif 113 117 … … 1752 1756 if (listObject->isUnorderedList() || listObject->isOrderedList()) 1753 1757 return NSAccessibilityContentListSubrole; 1754 if (listObject->isDescriptionList()) 1758 if (listObject->isDescriptionList()) { 1759 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1090 1760 return NSAccessibilityDefinitionListSubrole; 1761 #else 1755 1762 return NSAccessibilityDescriptionListSubrole; 1763 #endif 1764 } 1756 1765 } 1757 1766 … … 1804 1813 case DefinitionRole: 1805 1814 return @"AXDefinition"; 1806 case DescriptionListRole:1807 return @"AXDescriptionList";1808 1815 case DescriptionListTermRole: 1809 1816 return @"AXTerm";
Note: See TracChangeset
for help on using the changeset viewer.