Changeset 139658 in webkit


Ignore:
Timestamp:
Jan 14, 2013 1:38:46 PM (11 years ago)
Author:
dmazzoni@google.com
Message:

Chromium: Error in AccessibilityUIElement::intValueGetterCallback
https://bugs.webkit.org/show_bug.cgi?id=106682

Reviewed by Chris Fleizach.

Tools:

Modify Chromium's DRT implementation of intValue to return a
different value depending on the role.

There are actually platform-specific differences in what should
be returned in the "value" of an object, so Chromium normally keeps
these separate (i.e. valueForRange, headingLevel, hierarchicalLevel, etc.)
but this is a fine simplification to make cross-platform tests easier.

  • DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:

(WebTestRunner::AccessibilityUIElement::intValueGetterCallback):

LayoutTests:

Unskip accessibility/heading-level.html now that the bug is fixed.

  • platform/chromium/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139654 r139658  
     12013-01-14  Dominic Mazzoni  <dmazzoni@google.com>
     2
     3        Chromium: Error in AccessibilityUIElement::intValueGetterCallback
     4        https://bugs.webkit.org/show_bug.cgi?id=106682
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Unskip accessibility/heading-level.html now that the bug is fixed.
     9
     10        * platform/chromium/TestExpectations:
     11
    1122013-01-14  Stephen Chenney  <schenney@chromium.org>
    213
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r139649 r139658  
    14361436webkit.org/b/73912 accessibility/aria-checkbox-text.html [ Skip ]
    14371437webkit.org/b/99665 accessibility/loading-iframe-sends-notification.html [ Skip ]
    1438 webkit.org/b/106682 accessibility/heading-level.html [ Skip ]
    14391438
    14401439webkit.org/b/73912 accessibility/aria-checkbox-sends-notification.html [ Failure Pass ]
  • trunk/Tools/ChangeLog

    r139627 r139658  
     12013-01-14  Dominic Mazzoni  <dmazzoni@google.com>
     2
     3        Chromium: Error in AccessibilityUIElement::intValueGetterCallback
     4        https://bugs.webkit.org/show_bug.cgi?id=106682
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Modify Chromium's DRT implementation of intValue to return a
     9        different value depending on the role.
     10
     11        There are actually platform-specific differences in what should
     12        be returned in the "value" of an object, so Chromium normally keeps
     13        these separate (i.e. valueForRange, headingLevel, hierarchicalLevel, etc.)
     14        but this is a fine simplification to make cross-platform tests easier.
     15
     16        * DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
     17        (WebTestRunner::AccessibilityUIElement::intValueGetterCallback):
     18
    1192013-01-14  Jochen Eisinger  <jochen@chromium.org>
    220
  • trunk/Tools/DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp

    r138260 r139658  
    519519void AccessibilityUIElement::intValueGetterCallback(CppVariant* result)
    520520{
    521     result->set(accessibilityObject().valueForRange());
     521    if (accessibilityObject().supportsRangeValue())
     522        result->set(accessibilityObject().valueForRange());
     523    else if (accessibilityObject().roleValue() == WebAccessibilityRoleHeading)
     524        result->set(accessibilityObject().headingLevel());
     525    else
     526        result->set(atoi(accessibilityObject().stringValue().utf8().data()));
    522527}
    523528
Note: See TracChangeset for help on using the changeset viewer.