Skip to content
Permalink
Browse files

More reference images and masks for 3d tests

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent d3e83f4 commit 61eaecb64a2fca40754a8ef665900c6edada4eb2
@@ -14,7 +14,7 @@
***************************************************************************/

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

#include "qgsmaplayerstylemanager.h"
#include "qgsmapthemecollection.h"
@@ -384,12 +384,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.

0 comments on commit 61eaecb

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