Changeset 145231 in webkit


Ignore:
Timestamp:
Mar 8, 2013 8:59:16 AM (11 years ago)
Author:
Chris Fleizach
Message:

[Mac] [WK2] platform/mac/accessibility/press-action-is-first.html fails
https://bugs.webkit.org/show_bug.cgi?id=111814

Reviewed by Ryosuke Niwa.

Tools:

Add the needed supportedActions() attribute to WKTestRunner.

  • WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:

(WTR::AccessibilityUIElement::supportedActions):

  • WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:

(AccessibilityUIElement):

  • WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
  • WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:

(WTR::AccessibilityUIElement::supportedActions):

LayoutTests:

  • platform/mac-wk2/TestExpectations:
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r145228 r145231  
     12013-03-08  Chris Fleizach  <cfleizach@apple.com>
     2
     3        [Mac] [WK2] platform/mac/accessibility/press-action-is-first.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=111814
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * platform/mac-wk2/TestExpectations:
     9
    1102013-03-08  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
    211
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r145177 r145231  
    318318webkit.org/b/109890 [ Debug ] platform/mac-wk2/plugins/destroy-during-async-npp-new.html [ Crash ]
    319319
    320 webkit.org/b/111814 platform/mac/accessibility/press-action-is-first.html [ Failure ]
    321 
    322320webkit.org/b/111815 http/tests/security/cross-frame-access-put.html [ Failure ]
    323321
  • trunk/Tools/ChangeLog

    r145217 r145231  
     12013-03-08  Chris Fleizach  <cfleizach@apple.com>
     2
     3        [Mac] [WK2] platform/mac/accessibility/press-action-is-first.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=111814
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Add the needed supportedActions() attribute to WKTestRunner.
     9
     10        * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
     11        (WTR::AccessibilityUIElement::supportedActions):
     12        * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
     13        (AccessibilityUIElement):
     14        * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
     15        * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
     16        (WTR::AccessibilityUIElement::supportedActions):
     17
    1182013-03-08  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    219
  • trunk/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp

    r144237 r145231  
    181181PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::textMarkerForIndex(int) { return 0; }
    182182void AccessibilityUIElement::scrollToMakeVisible() { }
     183JSRetainPtr<JSStringRef> AccessibilityUIElement::supportedActions() const { return 0; }
    183184#endif
    184185
  • trunk/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h

    r144237 r145231  
    230230    PassRefPtr<AccessibilityTextMarker> textMarkerForIndex(int);
    231231
     232    // Returns an ordered list of supported actions for an element.
     233    JSRetainPtr<JSStringRef> supportedActions() const;
     234
    232235    // Notifications
    233236    // Function callback should take one argument, the name of the notification.
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl

    r144237 r145231  
    167167    AccessibilityTextMarker textMarkerForIndex(in int textIndex);
    168168
     169    // Returns an ordered list of supported actions for an element.
     170    readonly attribute DOMString supportedActions;
     171
    169172    // Notification support.
    170173    boolean addNotificationListener(in object callbackFunction);
  • trunk/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm

    r144237 r145231  
    14461446}
    14471447
     1448JSRetainPtr<JSStringRef> AccessibilityUIElement::supportedActions() const
     1449{
     1450    BEGIN_AX_OBJC_EXCEPTIONS
     1451    NSArray *names = [m_element accessibilityActionNames];
     1452    return [[names componentsJoinedByString:@","] createJSStringRef];
     1453    END_AX_OBJC_EXCEPTIONS
     1454   
     1455    return 0;
     1456}
    14481457
    14491458} // namespace WTR
Note: See TracChangeset for help on using the changeset viewer.