From 5da44e25e6fa16bc66b57a6cecb1e8836fa823d6 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 26 Aug 2025 11:37:32 +1000 Subject: [PATCH] Increase test tolerance --- tests/src/gui/testprocessinggui.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/src/gui/testprocessinggui.cpp b/tests/src/gui/testprocessinggui.cpp index 53427a058cd..8deb5af94a8 100644 --- a/tests/src/gui/testprocessinggui.cpp +++ b/tests/src/gui/testprocessinggui.cpp @@ -11463,7 +11463,7 @@ void TestProcessingGui::testModelGraphicsView() //check model bounds scene2.updateBounds(); QRectF modelRect = scene2.sceneRect(); - QGSCOMPARENEAR( modelRect.height(), 624.4, 3 ); // Sligtly higher threeshold because of various font size can marginally change the bounding rect + QGSCOMPARENEAR( modelRect.height(), 624.4, 5 ); // Slightly higher threeshold because of various font size can marginally change the bounding rect QGSCOMPARENEAR( modelRect.width(), 655.00, 0.01 ); QGSCOMPARENEAR( modelRect.left(), -252.0, 0.01 ); QGSCOMPARENEAR( modelRect.top(), -232.0, 0.01 ); @@ -11491,12 +11491,11 @@ void TestProcessingGui::testModelGraphicsView() scene3.updateBounds(); QRectF modelRect2 = scene3.sceneRect(); - QGSCOMPARENEAR( modelRect2.height(), 4505.4, 3 ); // Sligtly higher threeshold because of various font size can marginally change the bounding rect + QGSCOMPARENEAR( modelRect2.height(), 4505.4, 5 ); // Slightly higher threeshold because of various font size can marginally change the bounding rect QGSCOMPARENEAR( modelRect2.width(), 4603.0, 0.01 ); QGSCOMPARENEAR( modelRect2.left(), -201.0, 0.01 ); QGSCOMPARENEAR( modelRect2.top(), -150.0, 0.01 ); - QgsModelGraphicsScene scene; QVERIFY( !scene.model() ); scene.setModel( &model1 );