Skip to content
Permalink
Browse files

More reference images and masks for 3d tests

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent bdf062a commit f0994fdea50825fbc53ba2ab3b2771609059c7ce
@@ -14,7 +14,7 @@
***************************************************************************/

#include "qgstest.h"
#include "qgsrenderchecker.h"
#include "qgsmultirenderchecker.h"

#include "qgsproject.h"
#include "qgsrasterlayer.h"
@@ -208,12 +208,12 @@ bool TestQgs3DRendering::renderCheck( const QString &testName, QImage &image, in
QString myTmpDir = QDir::tempPath() + '/';
QString myFileName = myTmpDir + testName + ".png";
image.save( myFileName, "PNG" );
QgsRenderChecker myChecker;
QgsMultiRenderChecker myChecker;
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 );
bool myResultFlag = myChecker.runTest( testName, mismatchCount );
mReport += myChecker.report();
return myResultFlag;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit f0994fd

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