Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make the tests tolerant to small color differences
- Loading branch information
Showing
with
1 addition
and
0 deletions.
-
+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; |
|
|