Changeset 185675 in webkit
- Timestamp:
- Jun 17, 2015, 4:20:27 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/ios-simulator/accessibility/landmark-type-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/ios-simulator/accessibility/landmark-type.html (modified) (3 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r185666 r185675 1 2015-06-17 Chris Fleizach <cfleizach@apple.com> 2 3 AX: VoiceOver in iOS not announcing generic WAI-ARIA region, even if labelled properly 4 https://bugs.webkit.org/show_bug.cgi?id=146066 5 6 Reviewed by Darin Adler. 7 8 * platform/ios-simulator/accessibility/landmark-type-expected.txt: 9 * platform/ios-simulator/accessibility/landmark-type.html: 10 1 11 2015-06-17 Simon Fraser <simon.fraser@apple.com> 2 12 -
trunk/LayoutTests/platform/ios-simulator/accessibility/landmark-type-expected.txt
r185609 r185675 1 non landmark 2 text 1 3 text 2 4 text … … 7 9 8 10 PASS main.description is 'AXLabel: main' 11 PASS main.childAtIndex(0).traits != nonLandmarkText.traits is true 9 12 PASS banner.description is 'AXLabel: banner' 13 PASS banner.childAtIndex(0).traits != nonLandmarkText.traits is true 14 PASS region.description is 'AXLabel: testregion, region' 15 PASS region.childAtIndex(0).traits != nonLandmarkText.traits is true 16 PASS region.childAtIndex(0).traits == main.childAtIndex(0).traits is true 10 17 PASS successfullyParsed is true 11 18 -
trunk/LayoutTests/platform/ios-simulator/accessibility/landmark-type.html
r185609 r185675 9 9 <body id="body"> 10 10 11 <div role="group" id="group"> 12 non landmark 13 </div> 14 11 15 <div role="main" id="main"> 12 16 text … … 14 18 15 19 <div role="banner" id="banner"> 20 text 21 </div> 22 23 <div role="region" id="region" aria-label="testregion"> 16 24 text 17 25 </div> … … 26 34 if (window.accessibilityController) { 27 35 36 // The traits of an object inside a landmark will be different from those not in a landmark, 37 // so we can use that to determine if an object is marked as a landmark. 38 var nonLandmarkText = accessibilityController.accessibleElementById("group").childAtIndex(0); 39 28 40 var main = accessibilityController.accessibleElementById("main"); 29 41 shouldBe("main.description", "'AXLabel: main'"); 42 shouldBeTrue("main.childAtIndex(0).traits != nonLandmarkText.traits"); 30 43 31 44 var banner = accessibilityController.accessibleElementById("banner"); 32 45 shouldBe("banner.description", "'AXLabel: banner'"); 46 shouldBeTrue("banner.childAtIndex(0).traits != nonLandmarkText.traits"); 47 48 var region = accessibilityController.accessibleElementById("region"); 49 shouldBe("region.description", "'AXLabel: testregion, region'"); 50 shouldBeTrue("region.childAtIndex(0).traits != nonLandmarkText.traits"); 51 52 shouldBeTrue("region.childAtIndex(0).traits == main.childAtIndex(0).traits"); 33 53 } 34 54 -
trunk/Source/WebCore/ChangeLog
r185666 r185675 1 2015-06-17 Chris Fleizach <cfleizach@apple.com> 2 3 AX: VoiceOver in iOS not announcing generic WAI-ARIA region, even if labelled properly 4 https://bugs.webkit.org/show_bug.cgi?id=146066 5 6 Reviewed by Darin Adler. 7 8 Allow the region role to identify as a landmark type. 9 10 Updated test: platform/ios-simulator/accessibility/landmark-types.html 11 12 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: 13 (-[WebAccessibilityObjectWrapper _accessibilityIsLandmarkRole:]): 14 1 15 2015-06-17 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm
r185649 r185675 434 434 { 435 435 switch (role) { 436 case LandmarkApplicationRole: 437 case LandmarkBannerRole: 438 case LandmarkComplementaryRole: 439 case LandmarkContentInfoRole: 440 case LandmarkMainRole: 441 case LandmarkNavigationRole: 442 case LandmarkSearchRole: 443 return YES; 444 default: 445 return NO; 436 case DocumentRegionRole: 437 case LandmarkApplicationRole: 438 case LandmarkBannerRole: 439 case LandmarkComplementaryRole: 440 case LandmarkContentInfoRole: 441 case LandmarkMainRole: 442 case LandmarkNavigationRole: 443 case LandmarkSearchRole: 444 return YES; 445 default: 446 return NO; 446 447 } 447 448 }
Note:
See TracChangeset
for help on using the changeset viewer.