Fix tests for numerical precision problems
Animation times were change from Optional<double> to Optional<AnimationTimeDelta> in the following CL: https://chromium-review.googlesource.com/c/chromium/src/+/2591488 This change eroded the numerical precision of calculations involving time; however, we only require a time precision down to 1 microsecond (https://drafts.csswg.org/web-animations/#precision-of-time-values). Thus, it is safe to relax fuzzy equality constraints at the upper bounds of an animation. This patch, also addresses a previous inaccuracy where it was possible to recognize that an animation was limited (i.e. finished) yet not set the hold time when updating the finished state. Bug: 1169674, 1169111 Change-Id: I0d7869cac8809eb118b09b740a35a0fee4655303 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2644740 Commit-Queue: Kevin Ellis <kevers@chromium.org> Reviewed-by:Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#846370}
Showing
Please register or sign in to comment