Skip to content

Commit

Permalink
Added some extra output to provide some hints for creating a new anom…
Browse files Browse the repository at this point in the history
…aly file
  • Loading branch information
timlinux committed Apr 17, 2012
1 parent 0196ed8 commit 213a1bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/src/core/qgsrenderchecker.cpp
Expand Up @@ -318,9 +318,17 @@ bool QgsRenderChecker::compareImages( QString theTestName,
}
else
{
QString myMessage = "Difference image did not match any known anomaly.";
mReport += "<tr><td colspan=3>"
"Difference image did not match any known anomaly."
"</td></tr>";
QString myMeasureMessage = "<DartMeasurement name=\"No Anomalies Match"
"\" type=\"text/text\">" + myMessage +
" If you feel the difference image should be considered an anomaly "
"you can do something like this\n"
"cp " + myDiffImageFile + "../tests/testdata/control_images/" + theTestName +
"/<imagename>.png"
"</DartMeasurement>";
qDebug() << myMeasureMessage;
}

if ( mMismatchCount <= theMismatchCount)
Expand Down

0 comments on commit 213a1bc

Please sign in to comment.