Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f342df3

Browse files
committedApr 1, 2019
More reference images and masks for 3d tests
1 parent 8e9d0f7 commit f342df3

File tree

8 files changed

+3
-3
lines changed

8 files changed

+3
-3
lines changed
 

‎tests/src/3d/testqgs3drendering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
***************************************************************************/
1515

1616
#include "qgstest.h"
17-
#include "qgsrenderchecker.h"
17+
#include "qgsmultirenderchecker.h"
1818

1919
#include "qgsmaplayerstylemanager.h"
2020
#include "qgsmapthemecollection.h"
@@ -398,12 +398,12 @@ bool TestQgs3DRendering::renderCheck( const QString &testName, QImage &image, in
398398
QString myTmpDir = QDir::tempPath() + '/';
399399
QString myFileName = myTmpDir + testName + ".png";
400400
image.save( myFileName, "PNG" );
401-
QgsRenderChecker myChecker;
401+
QgsMultiRenderChecker myChecker;
402402
myChecker.setControlPathPrefix( QStringLiteral( "3d" ) );
403403
myChecker.setControlName( "expected_" + testName );
404404
myChecker.setRenderedImage( myFileName );
405405
myChecker.setColorTolerance( 2 ); // color tolerance < 2 was failing polygon3d_extrusion test
406-
bool myResultFlag = myChecker.compareImages( testName, mismatchCount );
406+
bool myResultFlag = myChecker.runTest( testName, mismatchCount );
407407
mReport += myChecker.report();
408408
return myResultFlag;
409409
}
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.