⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248037 in webkit


Ignore:
Timestamp:
Jul 31, 2019, 7:36:06 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

AX: Re-enable accessibility/set-selected-text-range-after-newline.html test.
https://bugs.webkit.org/show_bug.cgi?id=199431
<rdar://problem/52563340>

Patch by Andres Gonzalez <Andres Gonzalez> on 2019-07-31
Reviewed by Chris Fleizach.

Source/WebCore:

  • Re-enabled LayoutTests/accessibility/set-selected-text-range-after-newline.html.
  • Put back workaround in visiblePositionForIndexUsingCharacterIterator

that is needed for several accessibility issues.

  • This workaround was rolled back because it was thought the cause of:

https://bugs.webkit.org/show_bug.cgi?id=199434
It turned out that the actual cause of that hang was unrelated and was
fixed in:
https://bugs.webkit.org/show_bug.cgi?id=199845

  • editing/Editing.cpp:

(WebCore::visiblePositionForIndexUsingCharacterIterator):

LayoutTests:

  • TestExpectations:
  • accessibility/ios-simulator/set-selected-text-range-after-newline.html: Removed because it was the same as the one in the parent accessibility directory, so enabling it for iOS in ios-wk2/TestExpectations.
  • platform/ios-wk2/TestExpectations:
Location:
trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r248036 r248037  
     12019-07-31  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        AX: Re-enable accessibility/set-selected-text-range-after-newline.html test.
     4        https://bugs.webkit.org/show_bug.cgi?id=199431
     5        <rdar://problem/52563340>
     6
     7        Reviewed by Chris Fleizach.
     8
     9        * TestExpectations:
     10        * accessibility/ios-simulator/set-selected-text-range-after-newline.html: Removed because it was the same as the one in the parent accessibility directory, so enabling it for iOS in ios-wk2/TestExpectations.
     11        * platform/ios-wk2/TestExpectations:
     12
    1132019-07-31  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/LayoutTests/TestExpectations

    r247661 r248037  
    22092209### START OF -disabled tests
    22102210
    2211 webkit.org/b/199431 accessibility/set-selected-text-range-after-newline.html [ Skip ]
    22122211webkit.org/b/20871 js/garbage-collect-after-string-appends.html [ Skip ]
    22132212webkit.org/b/58323 compositing/objects/composited-object-alignment.html [ Skip ]
  • trunk/LayoutTests/platform/ios-wk2/TestExpectations

    r247919 r248037  
    2525editing/undo-manager [ Pass ]
    2626
     27accessibility/set-selected-text-range-after-newline.html [ Pass ]
    2728accessibility/smart-invert.html [ Pass ]
    2829accessibility/smart-invert-reference.html [ Pass ]
     
    997998fast/replaced/border-radius-clip.html [ Failure ]
    998999accessibility/ios-simulator/press-fires-touch-events.html [ Skip ]
    999 webkit.org/b/199431 accessibility/ios-simulator/set-selected-text-range-after-newline.html [ Skip ]
    10001000
    10011001fast/text/combining-character-sequence-vertical.html [ ImageOnlyFailure ]
  • trunk/Source/WebCore/ChangeLog

    r248034 r248037  
     12019-07-31  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        AX: Re-enable accessibility/set-selected-text-range-after-newline.html test.
     4        https://bugs.webkit.org/show_bug.cgi?id=199431
     5        <rdar://problem/52563340>
     6
     7        Reviewed by Chris Fleizach.
     8
     9        - Re-enabled LayoutTests/accessibility/set-selected-text-range-after-newline.html.
     10        - Put back workaround in visiblePositionForIndexUsingCharacterIterator
     11        that is needed for several accessibility issues.
     12        - This workaround was rolled back because it was thought the cause of:
     13        https://bugs.webkit.org/show_bug.cgi?id=199434
     14        It turned out that the actual cause of that hang was unrelated and was
     15        fixed in:
     16        https://bugs.webkit.org/show_bug.cgi?id=199845
     17
     18        * editing/Editing.cpp:
     19        (WebCore::visiblePositionForIndexUsingCharacterIterator):
     20
    1212019-07-31  Devin Rousso  <drousso@apple.com>
    222
  • trunk/Source/WebCore/editing/Editing.cpp

    r247093 r248037  
    11231123    it.advance(index - 1);
    11241124
     1125    if (!it.atEnd() && it.text()[0] == '\n') {
     1126        // FIXME: workaround for collapsed range (where only start position is correct) emitted for some emitted newlines.
     1127        auto iteratorRange = it.range();
     1128        if (iteratorRange->startPosition() == iteratorRange->endPosition()) {
     1129            it.advance(1);
     1130            if (!it.atEnd())
     1131                return VisiblePosition(it.range()->startPosition());
     1132        }
     1133    }
     1134
    11251135    return { it.atEnd() ? range->endPosition() : it.range()->endPosition(), UPSTREAM };
    11261136}
Note: See TracChangeset for help on using the changeset viewer.