Changeset 170661 in webkit
- Timestamp:
- Jul 1, 2014 1:29:52 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r170656 r170661 1 2014-07-01 Chris Fleizach <cfleizach@apple.com> 2 3 AX: HTML indeterminate IDL attribute not mapped to checkbox value=2 4 https://bugs.webkit.org/show_bug.cgi?id=134492 5 6 Reviewed by Andreas Kling. 7 8 * accessibility/aria-checked-mixed-value-expected.txt: 9 * accessibility/aria-checked-mixed-value.html: 10 * platform/mac/accessibility/aria-checked-mixed-value-expected.txt: Added. 11 1 12 2014-07-01 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/LayoutTests/accessibility/aria-checked-mixed-value-expected.txt
r161417 r170661 20 20 21 21 22 Role: AXRole: AXCheckBox 23 Mixed: true 24 25 26 Role: AXRole: AXCheckBox 27 Mixed: false 28 29 22 30 PASS successfullyParsed is true 23 31 -
trunk/LayoutTests/accessibility/aria-checked-mixed-value.html
r161417 r170661 12 12 <div id="element3" role="checkbox" aria-checked="mixed"></div> 13 13 <div id="element4" role="menuitemcheckbox" aria-checked="mixed"></div> 14 <div id="element5" role="checkbox" indeterminate="true"></div> 15 <div id="element6" role="checkbox" indeterminate="false"></div> 14 16 15 17 </div> … … 23 25 24 26 if (window.accessibilityController) { 25 for (var i = 1; i < 5; i++) {27 for (var i = 1; i < 7; i++) { 26 28 var element = accessibilityController.accessibleElementById("element" + i); 27 29 debug("Role: " + element.role); -
trunk/LayoutTests/platform/mac/accessibility/aria-checked-mixed-value-expected.txt
r170660 r170661 8 8 9 9 10 Role: AXRole: AX RadioMenuItem10 Role: AXRole: AXMenuItem 11 11 Mixed: false 12 12 … … 16 16 17 17 18 Role: AXRole: AX CheckMenuItem18 Role: AXRole: AXMenuItem 19 19 Mixed: true 20 21 22 Role: AXRole: AXCheckBox 23 Mixed: true 24 25 26 Role: AXRole: AXCheckBox 27 Mixed: false 20 28 21 29 -
trunk/Source/WebCore/ChangeLog
r170655 r170661 1 2014-07-01 Chris Fleizach <cfleizach@apple.com> 2 3 AX: HTML indeterminate IDL attribute not mapped to checkbox value=2 4 https://bugs.webkit.org/show_bug.cgi?id=134492 5 6 Reviewed by Andreas Kling. 7 8 Support the indeterminate attribute in AX code. 9 10 Test: Update existing test: accessibility/aria-checked-mixed-value 11 12 * accessibility/AccessibilityObject.cpp: 13 (WebCore::AccessibilityObject::checkboxOrRadioValue): 14 1 15 2014-07-01 Myles C. Maxfield <mmaxfield@apple.com> 2 16 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r170028 r170661 2086 2086 } 2087 2087 2088 if (equalIgnoringCase(getAttribute(indeterminateAttr), "true")) 2089 return ButtonStateMixed; 2090 2088 2091 return ButtonStateOff; 2089 2092 } -
trunk/Tools/ChangeLog
r170650 r170661 1 2014-07-01 Chris Fleizach <cfleizach@apple.com> 2 3 AX: HTML indeterminate IDL attribute not mapped to checkbox value=2 4 https://bugs.webkit.org/show_bug.cgi?id=134492 5 6 Reviewed by Andreas Kling. 7 8 * DumpRenderTree/mac/AccessibilityUIElementMac.mm: 9 (AccessibilityUIElement::isIndeterminate): 10 * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: 11 (WTR::AccessibilityUIElement::isIndeterminate): 12 1 13 2014-07-01 Daniel Bates <dabates@apple.com> 2 14 -
trunk/Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm
r168427 r170661 1480 1480 bool AccessibilityUIElement::isIndeterminate() const 1481 1481 { 1482 // FIXME: implement 1483 return false; 1482 BOOL result = NO; 1483 BEGIN_AX_OBJC_EXCEPTIONS 1484 id value = [m_element accessibilityAttributeValue:NSAccessibilityValueAttribute]; 1485 if ([value isKindOfClass:[NSNumber class]]) 1486 result = [value intValue] == 2; 1487 END_AX_OBJC_EXCEPTIONS 1488 return result; 1484 1489 } 1485 1490 -
trunk/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm
r169483 r170661 951 951 bool AccessibilityUIElement::isIndeterminate() const 952 952 { 953 // FIXME: implement 954 return false; 953 BOOL result = NO; 954 BEGIN_AX_OBJC_EXCEPTIONS 955 id value = [m_element accessibilityAttributeValue:NSAccessibilityValueAttribute]; 956 if ([value isKindOfClass:[NSNumber class]]) 957 result = [value intValue] == 2; 958 END_AX_OBJC_EXCEPTIONS 959 return result; 955 960 } 956 961
Note: See TracChangeset
for help on using the changeset viewer.