Skip to content
Permalink
Browse files

Add some tolerance to atlas tests

  • Loading branch information
nyalldawson committed Oct 8, 2014
1 parent 732a899 commit b3f00ec3db61bda18be36bb327fac86728d9a8bf
Showing with 9 additions and 9 deletions.
  1. +9 −9 tests/src/core/testqgsatlascomposition.cpp
@@ -216,7 +216,7 @@ void TestQgsAtlasComposition::autoscale_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_autoscale%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
mAtlasMap->setAtlasDriven( false );
@@ -239,7 +239,7 @@ void TestQgsAtlasComposition::autoscale_render_2_0_api()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_autoscale_old_api%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
Q_NOWARN_DEPRECATED_PUSH
@@ -264,7 +264,7 @@ void TestQgsAtlasComposition::fixedscale_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_fixedscale%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();

@@ -286,7 +286,7 @@ void TestQgsAtlasComposition::fixedscale_render_2_0_api()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_fixedscale_old_api%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
Q_NOWARN_DEPRECATED_PUSH
@@ -324,7 +324,7 @@ void TestQgsAtlasComposition::predefinedscales_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_predefinedscales%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();

@@ -348,7 +348,7 @@ void TestQgsAtlasComposition::two_map_autoscale_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_two_maps%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
mAtlasMap->setAtlasDriven( false );
@@ -371,7 +371,7 @@ void TestQgsAtlasComposition::hiding_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_hiding%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
}
@@ -395,7 +395,7 @@ void TestQgsAtlasComposition::sorting_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_sorting%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
}
@@ -420,7 +420,7 @@ void TestQgsAtlasComposition::filtering_render()
mLabel1->adjustSizeToText();

QgsCompositionChecker checker( QString( "atlas_filtering%1" ).arg((( int )fit ) + 1 ), mComposition );
QVERIFY( checker.testComposition( mReport, 0, 0 ) );
QVERIFY( checker.testComposition( mReport, 0, 100 ) );
}
mAtlas->endRender();
}

0 comments on commit b3f00ec

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