• Lan Wei's avatar
    Reland "Rewrite scroll interruption tests into browser tests" · 37ba4241
    Lan Wei authored
    After we finish the scroll unification, the scrolls happens mainly on
    the compositor thread, and the scroll code in the main thread will be
    removed. eventSender sends the scroll events to main thread, so it
    would not work after the scroll unification. We rewrite below tests
    fast/scroll-behavior/main-frame-interrupted-scroll.html,
    fast/scroll-behavior/overflow-interrupted-scroll.html and
    fast/scroll-behavior/subframe-interrupted-scroll.html into browser tests
    because we cannot guarantee that the scroll arrives before the animation
    completes.
    
    I disable the test when disable_threaded_scrolling_ is false, because we
    do not know what is the final scrollTop value.
    
    TBR=bokan@chromium.org
    
    Change-Id: Ia9b68cd2e0c4f198968aa56482698c0c02edf452
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441205Reviewed-by: default avatarLan Wei <lanwei@chromium.org>
    Commit-Queue: Lan Wei <lanwei@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#812517}
    37ba4241
BUILD.gn 105 KB