• David Bokan's avatar
    Fix pinch zoom tests on Mac · 3af420d0
    David Bokan authored
    These tests:
    virtual/threaded/fast/events/pinch/pinch-zoom-into-center.html
    virtual/threaded/fast/events/pinch/pinch-zoom-pan-position-fixed.html
    pinch-zoom-pan-within-zoomed-viewport.html
    
    were breaking because Mac doesn't support touch events and the pinch
    was being done using touch. I've changed to use a touchpad source as
    this doesn't affect the meaning of the tests as well as some minor
    cleanups.
    
    While here, I also rewrote a number of tests to use gesture-util.js and
    the async/await style which is more readable and easier to produce
    non-flaky tests.
    
    TBR=nasko@chromium.org
    
    Bug: 854199,873435,877494,877361
    Change-Id: I19f6e199fea694013d3dceaeb32c881059301f1d
    Reviewed-on: https://chromium-review.googlesource.com/1185238
    Commit-Queue: David Bokan <bokan@chromium.org>
    Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
    Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
    Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#585871}
    3af420d0
TestExpectations 457 KB