Changeset 212478 in webkit


Ignore:
Timestamp:
Feb 16, 2017 3:34:29 PM (7 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r212197): [ios-simulator Debug WK2] LayoutTest fast/css/target-fragment-match.html is failing
https://bugs.webkit.org/show_bug.cgi?id=168239

In iOS WK2, resetting the scroll position after history navigation involves a trip
through the UI process. Attempted to de-flake this test by using a nested setTimeout(0).

  • fast/css/target-fragment-match.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r212470 r212478  
     12017-02-16  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r212197): [ios-simulator Debug WK2] LayoutTest fast/css/target-fragment-match.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=168239
     5
     6        In iOS WK2, resetting the scroll position after history navigation involves a trip
     7        through the UI process. Attempted to de-flake this test by using a nested setTimeout(0).
     8
     9        * fast/css/target-fragment-match.html:
     10
    1112017-02-16  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/LayoutTests/fast/css/target-fragment-match.html

    r120683 r212478  
    2222    window.history.back(); // This queues up a navigation, so we need to delay the call to notifyDone.
    2323    if (window.testRunner)
    24         setTimeout(function() { testRunner.notifyDone() }, 0);
     24        setTimeout(function() {
     25            // Second setTimeout is because iOS WK2 updates the scroll position after history navigation via the UI process.
     26            setTimeout(function() {
     27                testRunner.notifyDone()
     28            }, 0);
     29        }, 0);
    2530}
    2631</script>
Note: See TracChangeset for help on using the changeset viewer.