Bug 1014691 - Get TestAsyncPanZoomController to compile in its new location. r=kats
authorBotond Ballo <botond@mozilla.com>
Wed, 16 Sep 2015 19:49:59 -0400
changeset 263615 82e3928eea38fe896e73f351e061ded533c5d56a
parent 263614 5807b0c3f345dce5b9a5df55d95597606ae4bcb0
child 263616 ffbfef1d206e64b237b9177201386b65d3aa25b5
push id65371
push userbballo@mozilla.com
push dateMon, 21 Sep 2015 23:15:26 +0000
treeherdermozilla-inbound@ffbfef1d206e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1014691
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1014691 - Get TestAsyncPanZoomController to compile in its new location. r=kats
gfx/layers/apz/test/gtest/TestAsyncPanZoomController.cpp
--- a/gfx/layers/apz/test/gtest/TestAsyncPanZoomController.cpp
+++ b/gfx/layers/apz/test/gtest/TestAsyncPanZoomController.cpp
@@ -942,18 +942,18 @@ TEST_F(APZCBasicTester, Overzoom) {
   EXPECT_CALL(*mcc, RequestContentRepaint(_)).Times(1);
 
   PinchWithPinchInputAndCheckStatus(apzc, 50, 50, 0.5, true);
 
   fm = apzc->GetFrameMetrics();
   EXPECT_EQ(0.8f, fm.GetZoom().ToScaleFactor().scale);
   // bug 936721 - PGO builds introduce rounding error so
   // use a fuzzy match instead
-  EXPECT_LT(abs(fm.GetScrollOffset().x), 1e-5);
-  EXPECT_LT(abs(fm.GetScrollOffset().y), 1e-5);
+  EXPECT_LT(std::abs(fm.GetScrollOffset().x), 1e-5);
+  EXPECT_LT(std::abs(fm.GetScrollOffset().y), 1e-5);
 }
 
 TEST_F(APZCBasicTester, SimpleTransform) {
   ParentLayerPoint pointOut;
   ViewTransform viewTransformOut;
   apzc->SampleContentTransformForFrame(&viewTransformOut, pointOut);
 
   EXPECT_EQ(ParentLayerPoint(), pointOut);