Changeset 239025 in webkit


Ignore:
Timestamp:
Dec 9, 2018 11:54:16 PM (5 years ago)
Author:
Wenson Hsieh
Message:

[iOS] DragAndDropTests.RespectsExternalSourceFidelityRankings is flaky
https://bugs.webkit.org/show_bug.cgi?id=192524

Reviewed by Ryosuke Niwa.

This test started failing on certain builds of iOS where UIKit now attempts to reveal the selection by scrolling
(see <rdar://problem/28300343>). This API test simulates two drops from external sources, both from the point
(300, 400) to (100, 300) in window coordinates. On these aforementioned builds of iOS, what happens is that the
first drop inserts text that overflows the editable region by an enormous amount, which creates an extremely
wide selection rect and increases the width of the document; revealing this selection causes the web view to
scroll horizontally, such that the second attempt to simulate a drag from (300, 400) to (100, 300) fails, since
these window coordinates no longer correspond to the drop destination element in the document.

To fix this test, we simply mark the drop destination as overflow: hidden to ensure that we don't try and
scroll horizontally after the first drop.

  • TestWebKitAPI/Tests/WebKitCocoa/autofocus-contenteditable.html:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r239011 r239025  
     12018-12-09  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [iOS] DragAndDropTests.RespectsExternalSourceFidelityRankings is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=192524
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        This test started failing on certain builds of iOS where UIKit now attempts to reveal the selection by scrolling
     9        (see <rdar://problem/28300343>). This API test simulates two drops from external sources, both from the point
     10        (300, 400) to (100, 300) in window coordinates. On these aforementioned builds of iOS, what happens is that the
     11        first drop inserts text that overflows the editable region by an enormous amount, which creates an extremely
     12        wide selection rect and increases the width of the document; revealing this selection causes the web view to
     13        scroll horizontally, such that the second attempt to simulate a drag from (300, 400) to (100, 300) fails, since
     14        these window coordinates no longer correspond to the drop destination element in the document.
     15
     16        To fix this test, we simply mark the drop destination as `overflow: hidden` to ensure that we don't try and
     17        scroll horizontally after the first drop.
     18
     19        * TestWebKitAPI/Tests/WebKitCocoa/autofocus-contenteditable.html:
     20
    1212018-12-08  Daniel Bates  <dabates@apple.com>
    222
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/autofocus-contenteditable.html

    r238728 r239025  
    1515        }
    1616
    17         #source {
     17        #source, #editor {
    1818            overflow: hidden;
    1919        }
Note: See TracChangeset for help on using the changeset viewer.