Fix AppListPresenterDelegateScalableAppListTest with hotseat enabled
Enabling hotseat exposes some rounding errors when calculating expected app list layout half way during drag between peeking/half to full-screen/closed state. To fix this, calculate the expected search box padding using currently reported app list transition progress (which is already checked that is reasonably close to half state values), and gfx::Tween::IntValueBetween, which is also the method used to determine the padding value for the current progress app list progress. BUG=1011920 Change-Id: I9792442aba0953f880308606d2291a98e6aac9d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848155 Commit-Queue: Toni Baržić <tbarzic@chromium.org> Reviewed-by:Alex Newcomer <newcomer@chromium.org> Cr-Commit-Position: refs/heads/master@{#704230}
Showing
Please register or sign in to comment