Changeset 239482 in webkit


Ignore:
Timestamp:
Dec 20, 2018 5:32:14 PM (5 years ago)
Author:
Wenson Hsieh
Message:

[iOS] Some layout tests are failing after r239441
https://bugs.webkit.org/show_bug.cgi?id=192957
<rdar://problem/46781759>

Reviewed by Simon Fraser.

Fix several failing layout tests after r239441.

  • fast/events/ios/click-event-while-editing-node.html:

This test started failing after r239441 because it taps the bottom of the editable element, and then expects
WebKit to scroll the web view up to reveal the touched location. This was exactly the bug that r239441 fixed, so
we should just make this test no longer depend on the broken behavior.

  • fast/forms/ios/focus-long-textarea-expected.txt:
  • fast/forms/ios/zoom-after-input-tap-wide-input-expected.txt:

Rebaseline a couple of test expectations to account for the change in margin around the selection rect, in
-[WKWebView _zoomToFocusRect:…:].

Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r239471 r239482  
     12018-12-20  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [iOS] Some layout tests are failing after r239441
     4        https://bugs.webkit.org/show_bug.cgi?id=192957
     5        <rdar://problem/46781759>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Fix several failing layout tests after r239441.
     10
     11        * fast/events/ios/click-event-while-editing-node.html:
     12
     13        This test started failing after r239441 because it taps the bottom of the editable element, and then expects
     14        WebKit to scroll the web view up to reveal the touched location. This was exactly the bug that r239441 fixed, so
     15        we should just make this test no longer depend on the broken behavior.
     16
     17        * fast/forms/ios/focus-long-textarea-expected.txt:
     18        * fast/forms/ios/zoom-after-input-tap-wide-input-expected.txt:
     19
     20        Rebaseline a couple of test expectations to account for the change in margin around the selection rect, in
     21        -[WKWebView _zoomToFocusRect:…:].
     22
    1232018-12-20  Jiewen Tan  <jiewen_tan@apple.com>
    224
  • trunk/LayoutTests/fast/events/ios/click-event-while-editing-node.html

    r232040 r239482  
    2525    testRunner.dumpAsText();
    2626    jsTestIsAsync = true;
    27     UIHelper.activateAndWaitForInputSessionAt(50, 300).then(() => {
    28         UIHelper.tapAt(50, 300).then(() => {
     27    UIHelper.activateAndWaitForInputSessionAt(50, 200).then(() => {
     28        UIHelper.tapAt(50, 200).then(() => {
    2929            shouldBeEqualToString("document.getElementById('clicks').textContent", `${clickCount}`);
    3030            finishJSTest();
  • trunk/LayoutTests/fast/forms/ios/focus-long-textarea-expected.txt

    r209967 r239482  
    44tap location    { x: 38.000, y: 664.000 }
    55scale   1.455
    6 visibleRect     { left: 0.000, top: 506.294, width: 219.979, height: 376.713 }
     6visibleRect     { left: 0.000, top: 498.045, width: 219.979, height: 376.713 }
  • trunk/LayoutTests/fast/forms/ios/zoom-after-input-tap-wide-input-expected.txt

    r209967 r239482  
    44tap location    { x: 328.000, y: 862.000 }
    55scale   1.455
    6 visibleRect     { left: 122.707, top: 776.803, width: 219.980, height: 376.715 }
     6visibleRect     { left: 114.458, top: 776.803, width: 219.980, height: 376.715 }
Note: See TracChangeset for help on using the changeset viewer.