21 : mColorTolerance( 0 )
27 mControlName = theName;
32 mControlPathPrefix = prefix;
37 mMapSettings = mapSettings;
42 bool successful =
false;
46 QStringList subDirs = QDir( baseDir ).entryList( QDir::Dirs | QDir::NoDotAndDotDot );
48 if ( subDirs.count() == 0 )
53 QVector<QgsDartMeasurement> dartMeasurements;
55 Q_FOREACH (
const QString& suffix, subDirs )
57 qDebug() <<
"Checking subdir " << suffix;
67 if ( !mRenderedImage.isNull() )
70 result = checker.
compareImages( theTestName, theMismatchCount, mRenderedImage );
74 result = checker.
runTest( theTestName, theMismatchCount );
82 mReport += checker.
report();
91 "If this is a rendering inconsistency, please add another control image folder, add an anomaly image or increase the color tolerance." );
100 QString myDataDir( TEST_DATA_DIR );
101 QString myControlImageDir = myDataDir + QDir::separator() +
"control_images" +
102 QDir::separator() + mControlPathPrefix + QDir::separator() + mControlName + QDir::separator();
103 return myControlImageDir;