Skip to content

Commit

Permalink
make QgsCompositionChecker less forgiving and readd a svg used in tes…
Browse files Browse the repository at this point in the history
…ts (fixes #7731)
  • Loading branch information
jef-n committed Jul 13, 2013
1 parent b9fc239 commit ff7aaba
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 2 deletions.
76 changes: 76 additions & 0 deletions images/svg/gpsicons/plane_orange.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/src/core/qgscompositionchecker.cpp
Expand Up @@ -126,7 +126,7 @@ bool QgsCompositionChecker::compareImages( const QImage& imgExpected, const QIma
differenceImage.save( differenceImagePath, "PNG" );
}

//allow pixel deviation of 1 percent
//allow pixel deviation of 1 per mille
int pixelCount = imageWidth * imageHeight;
return (( double )mismatchCount / ( double )pixelCount ) < 0.01;
return (( double )mismatchCount / ( double )pixelCount ) < 0.001;
}

0 comments on commit ff7aaba

Please sign in to comment.