Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make the tests tolerant to small color differences
  • Loading branch information
wonder-sk committed Jul 26, 2018
1 parent db51062 commit e5dbd80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/3d/testqgs3drendering.cpp
Expand Up @@ -202,6 +202,7 @@ bool TestQgs3DRendering::renderCheck( const QString &testName, QImage &image, in
myChecker.setControlPathPrefix( QStringLiteral( "3d" ) );
myChecker.setControlName( "expected_" + testName );
myChecker.setRenderedImage( myFileName );
myChecker.setColorTolerance( 2 ); // color tolerance < 2 was failing polygon3d_extrusion test
bool myResultFlag = myChecker.compareImages( testName, mismatchCount );
mReport += myChecker.report();
return myResultFlag;
Expand Down

0 comments on commit e5dbd80

Please sign in to comment.