Skip to content
Permalink
Browse files

More reference images and masks for 3d tests

  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent ba63f39 commit c78bee73ccfb933859190b7b105ada2b970e0b47
@@ -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 c78bee7

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