Skip to content
Permalink
Browse files

Fix inverted polygon renderer test

  • Loading branch information
m-kuhn committed Nov 14, 2014
1 parent 9d9f7c1 commit 58932890b3bd56efa27c26d1d6bd2b33b9033c04
@@ -31,7 +31,7 @@
#include <qgsproviderregistry.h>
#include <qgsmaplayerregistry.h>
//qgis test includes
#include "qgsrenderchecker.h"
#include "qgsmultirenderchecker.h"

/** \ingroup UnitTests
* This is a unit test for the different renderers for vector layers.
@@ -170,10 +170,11 @@ bool TestQgsInvertedPolygon::imageCheck( QString theTestType, const QgsRectangle
{
mMapSettings.setExtent( *extent );
}
QgsRenderChecker myChecker;
QgsMultiRenderChecker myChecker;
myChecker.setControlName( "expected_" + theTestType );
myChecker.setMapSettings( mMapSettings );
bool myResultFlag = myChecker.runTest( theTestType, 1000 ); // allow some mismatched pixels
myChecker.setColorTolerance( 20 );
bool myResultFlag = myChecker.runTest( theTestType );
mReport += myChecker.report();
return myResultFlag;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5893289

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