Skip to content
Permalink
Browse files

Make the tests tolerant to small color differences

  • Loading branch information
wonder-sk committed Jul 25, 2018
1 parent db51062 commit e5dbd803afdee65d1b88e770273baa41f7256e6b
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/src/3d/testqgs3drendering.cpp
@@ -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;

0 comments on commit e5dbd80

Please sign in to comment.
You can’t perform that action at this time.