Skip to content

Commit 81d3871

Browse files
committedNov 14, 2014
Fix shapeburst test
Move to multirenderchecker
1 parent 416f471 commit 81d3871

File tree

17 files changed

+4
-3
lines changed

17 files changed

+4
-3
lines changed
 

‎tests/src/core/testqgsshapeburst.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <qgsfillsymbollayerv2.h>
3636
#include <qgsvectorcolorrampv2.h>
3737
//qgis test includes
38-
#include "qgsrenderchecker.h"
38+
#include "qgsmultirenderchecker.h"
3939

4040
/** \ingroup UnitTests
4141
* This is a unit test for shapeburst fill types.
@@ -233,10 +233,11 @@ bool TestQgsShapeburst::imageCheck( QString theTestType )
233233
//use the QgsRenderChecker test utility class to
234234
//ensure the rendered output matches our control image
235235
mMapSettings.setExtent( mpPolysLayer->extent() );
236-
QgsRenderChecker myChecker;
236+
QgsMultiRenderChecker myChecker;
237237
myChecker.setControlName( "expected_" + theTestType );
238238
myChecker.setMapSettings( mMapSettings );
239-
bool myResultFlag = myChecker.runTest( theTestType, 200 );
239+
myChecker.setColorTolerance( 20 );
240+
bool myResultFlag = myChecker.runTest( theTestType );
240241
mReport += myChecker.report();
241242
return myResultFlag;
242243
}
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.