mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 936721 - Do a fuzzy equality comparison to account for floating-point rounding errors. r=botond
This commit is contained in:
parent
8a67838313
commit
ef8d5368f2
@ -222,8 +222,10 @@ TEST(AsyncPanZoomController, Overzoom) {
|
||||
|
||||
fm = apzc->GetFrameMetrics();
|
||||
EXPECT_EQ(fm.mZoom.scale, 0.8f);
|
||||
EXPECT_EQ(fm.mScrollOffset.x, 0);
|
||||
EXPECT_EQ(fm.mScrollOffset.y, 0);
|
||||
// bug 936721 - PGO builds introduce rounding error so
|
||||
// use a fuzzy match instead
|
||||
EXPECT_LT(abs(fm.mScrollOffset.x), 1e-5);
|
||||
EXPECT_LT(abs(fm.mScrollOffset.y), 1e-5);
|
||||
}
|
||||
|
||||
TEST(AsyncPanZoomController, SimpleTransform) {
|
||||
|
Loading…
Reference in New Issue
Block a user