mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
Increase test tolerance
This commit is contained in:
parent
99b0037450
commit
5da44e25e6
@ -11463,7 +11463,7 @@ void TestProcessingGui::testModelGraphicsView()
|
|||||||
//check model bounds
|
//check model bounds
|
||||||
scene2.updateBounds();
|
scene2.updateBounds();
|
||||||
QRectF modelRect = scene2.sceneRect();
|
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.width(), 655.00, 0.01 );
|
||||||
QGSCOMPARENEAR( modelRect.left(), -252.0, 0.01 );
|
QGSCOMPARENEAR( modelRect.left(), -252.0, 0.01 );
|
||||||
QGSCOMPARENEAR( modelRect.top(), -232.0, 0.01 );
|
QGSCOMPARENEAR( modelRect.top(), -232.0, 0.01 );
|
||||||
@ -11491,12 +11491,11 @@ void TestProcessingGui::testModelGraphicsView()
|
|||||||
|
|
||||||
scene3.updateBounds();
|
scene3.updateBounds();
|
||||||
QRectF modelRect2 = scene3.sceneRect();
|
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.width(), 4603.0, 0.01 );
|
||||||
QGSCOMPARENEAR( modelRect2.left(), -201.0, 0.01 );
|
QGSCOMPARENEAR( modelRect2.left(), -201.0, 0.01 );
|
||||||
QGSCOMPARENEAR( modelRect2.top(), -150.0, 0.01 );
|
QGSCOMPARENEAR( modelRect2.top(), -150.0, 0.01 );
|
||||||
|
|
||||||
|
|
||||||
QgsModelGraphicsScene scene;
|
QgsModelGraphicsScene scene;
|
||||||
QVERIFY( !scene.model() );
|
QVERIFY( !scene.model() );
|
||||||
scene.setModel( &model1 );
|
scene.setModel( &model1 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user