Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More reference images and masks for 3d tests
  • Loading branch information
nyalldawson committed Apr 1, 2019
1 parent d3e83f4 commit 61eaecb
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 "qgsmaplayerstylemanager.h"
#include "qgsmapthemecollection.h"
Expand Down Expand Up @@ -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;
}
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.

0 comments on commit 61eaecb

Please sign in to comment.