Skip to content
Permalink
Browse files
Fix inverted polygon renderer test
  • Loading branch information
m-kuhn committed Nov 14, 2014
1 parent 9d9f7c1 commit 5893289
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 3 deletions.
@@ -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;
}
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 5893289

Please sign in to comment.