Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Backport test suite from master
  • Loading branch information
nyalldawson committed Jul 16, 2015
1 parent 60b14a2 commit 9932ae1
Show file tree
Hide file tree
Showing 254 changed files with 1,216 additions and 679 deletions.
182 changes: 96 additions & 86 deletions src/core/qgsrenderchecker.cpp
Expand Up @@ -27,6 +27,8 @@
#include <QDebug>
#include <QBuffer>

static int renderCounter = 0;

QgsRenderChecker::QgsRenderChecker()
: mReport( "" )
, mMatchTarget( 0 )
Expand All @@ -35,6 +37,8 @@ QgsRenderChecker::QgsRenderChecker()
, mExpectedImageFile( "" )
, mMismatchCount( 0 )
, mColorTolerance( 0 )
, mMaxSizeDifferenceX( 0 )
, mMaxSizeDifferenceY( 0 )
, mElapsedTimeTarget( 0 )
, mBufferDashMessages( false )
{
Expand All @@ -43,16 +47,14 @@ QgsRenderChecker::QgsRenderChecker()
QString QgsRenderChecker::controlImagePath() const
{
QString myDataDir( TEST_DATA_DIR ); //defined in CmakeLists.txt
QString myControlImageDir = myDataDir + QDir::separator() + "control_images" +
QDir::separator() + mControlPathPrefix;