Skip to content
Permalink
Browse files

Fix shapeburst test

Move to multirenderchecker
  • Loading branch information
m-kuhn committed Nov 14, 2014
1 parent 416f471 commit 81d387104858c40ec4ca42d38aba414c6ed3d890
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/src/core/testqgsshapeburst.cpp
  2. BIN tests/testdata/control_images/expected_shapeburst/{ → default}/expected_shapeburst.png
  3. BIN tests/testdata/control_images/expected_shapeburst/precise/expected_shapeburst.png
  4. BIN tests/testdata/control_images/expected_shapeburst_blur/{ → default}/expected_shapeburst_blur.png
  5. BIN tests/testdata/control_images/expected_shapeburst_blur/precise/expected_shapeburst_blur.png
  6. BIN tests/testdata/control_images/expected_shapeburst_colors/{ → default}/expected_shapeburst_colors.png
  7. BIN tests/testdata/control_images/expected_shapeburst_colors/precise/expected_shapeburst_colors.png
  8. BIN tests/testdata/control_images/expected_shapeburst_from_qml/precise/expected_shapeburst_from_qml.png
  9. BIN ...a/control_images/expected_shapeburst_ignorerings/{ → default}/expected_shapeburst_ignorerings.png
  10. BIN ...stdata/control_images/expected_shapeburst_ignorerings/precise/expected_shapeburst_ignorerings.png
  11. BIN ...tdata/control_images/expected_shapeburst_ignorerings/precise2/expected_shapeburst_ignorerings.png
  12. BIN .../expected_shapeburst_maxdistance_mapunit/{ → default}/expected_shapeburst_maxdistance_mapunit.png
  13. BIN ...mages/expected_shapeburst_maxdistance_mapunit/precise/expected_shapeburst_maxdistance_mapunit.png
  14. BIN ...rol_images/expected_shapeburst_maxdistance_mm/{ → default}/expected_shapeburst_maxdistance_mm.png
  15. BIN .../control_images/expected_shapeburst_maxdistance_mm/precise/expected_shapeburst_maxdistance_mm.png
  16. BIN tests/testdata/control_images/expected_shapeburst_ramp/{ → default}/expected_shapeburst_ramp.png
  17. BIN tests/testdata/control_images/expected_shapeburst_ramp/precise/expected_shapeburst_ramp.png
@@ -35,7 +35,7 @@
#include <qgsfillsymbollayerv2.h>
#include <qgsvectorcolorrampv2.h>
//qgis test includes
#include "qgsrenderchecker.h"
#include "qgsmultirenderchecker.h"

/** \ingroup UnitTests
* This is a unit test for shapeburst fill types.
@@ -233,10 +233,11 @@ bool TestQgsShapeburst::imageCheck( QString theTestType )
//use the QgsRenderChecker test utility class to
//ensure the rendered output matches our control image
mMapSettings.setExtent( mpPolysLayer->extent() );
QgsRenderChecker myChecker;
QgsMultiRenderChecker myChecker;
myChecker.setControlName( "expected_" + theTestType );
myChecker.setMapSettings( mMapSettings );
bool myResultFlag = myChecker.runTest( theTestType, 200 );
myChecker.setColorTolerance( 20 );
bool myResultFlag = myChecker.runTest( theTestType );
mReport += myChecker.report();
return myResultFlag;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 81d3871

Please sign in to comment.
You can’t perform that action at this time.