Skip to content

Commit e5dbd80

Browse files
committed
Make the tests tolerant to small color differences
1 parent db51062 commit e5dbd80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/src/3d/testqgs3drendering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ bool TestQgs3DRendering::renderCheck( const QString &testName, QImage &image, in
202202
myChecker.setControlPathPrefix( QStringLiteral( "3d" ) );
203203
myChecker.setControlName( "expected_" + testName );
204204
myChecker.setRenderedImage( myFileName );
205+
myChecker.setColorTolerance( 2 ); // color tolerance < 2 was failing polygon3d_extrusion test
205206
bool myResultFlag = myChecker.compareImages( testName, mismatchCount );
206207
mReport += myChecker.report();
207208
return myResultFlag;

0 commit comments

Comments
 (0)