Skip to content

Commit

Permalink
More reference images and masks for 3d tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 2, 2019
1 parent bdf062a commit f0994fd
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/3d/testqgs3drendering.cpp
Expand Up @@ -14,7 +14,7 @@
***************************************************************************/

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

#include "qgsproject.h"
#include "qgsrasterlayer.h"
Expand Down Expand Up @@ -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;
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0994fd

Please sign in to comment.