Chromium Code Reviews
DescriptionFix precision problem in TouchActionBrowserTest.
Comparing floating point numbers can lead to unexpected result on
different devices. This prevents the test from getting stuck in DoTouchScroll due to
minimal floating point deviations.
As the test is only verifying that scrolling happened at all or not,
just divide the expected value by 2 instead of trying to finesse the problem
with epsilons.
BUG=653644
Committed: https://crrev.com/9b94ba4283bddbe9ee1007aba471d6636fa87c67
Cr-Commit-Position: refs/heads/master@{#423898}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use precision for comparison in scroll test #Messages
Total messages: 12 (5 generated)
|