Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Issue 219243010: Update pad-gesture-fling test to accommodate short-circuited fling (Closed)

Created:
6 years, 8 months ago by jdduke (slow)
Modified:
6 years, 8 months ago
Reviewers:
bokan
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update pad-gesture-fling test to accommodate short-circuited fling The pad-gesture-fling layout tests assumes the fling curve will generate a minimum number of events. This may not always hold, depending on the fling curve parameters, the fling curve update frequency and whether the main thread is slow. Instead, impose a maximum limit on the number of fling updates it takes to reach the minimum offset target, and use preventDefault() on the mousewheel event to prevent the fling from terminating early. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170597

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove max expected events #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
M LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js View 1 2 chunks +9 lines, -6 lines 0 comments Download
M LayoutTests/fast/events/touch/gesture/pad-gesture-fling-expected.txt View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jdduke (slow)
bokan@: This isn't the cleanest solution, but it did resolve the issue on Android (had ...
6 years, 8 months ago (2014-04-01 18:24:06 UTC) #1
bokan
https://codereview.chromium.org/219243010/diff/1/LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js File LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js (right): https://codereview.chromium.org/219243010/diff/1/LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js#newcode31 LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js:31: && actualWheelEventsOccurred < maximumWheelEventsExpected)) { I don't think you ...
6 years, 8 months ago (2014-04-01 18:37:10 UTC) #2
jdduke (slow)
https://codereview.chromium.org/219243010/diff/1/LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js File LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js (right): https://codereview.chromium.org/219243010/diff/1/LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js#newcode31 LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js:31: && actualWheelEventsOccurred < maximumWheelEventsExpected)) { On 2014/04/01 18:37:10, bokan ...
6 years, 8 months ago (2014-04-01 18:38:45 UTC) #3
jdduke (slow)
OK, updated per offline discussion.
6 years, 8 months ago (2014-04-01 18:53:39 UTC) #4
bokan
On 2014/04/01 18:53:39, jdduke wrote: > OK, updated per offline discussion. LGTM
6 years, 8 months ago (2014-04-01 19:01:53 UTC) #5
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-01 19:09:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/219243010/20001
6 years, 8 months ago (2014-04-01 19:09:53 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 20:18:23 UTC) #8
Message was sent while issue was closed.
Change committed as 170597

Powered by Google App Engine
This is Rietveld 408576698