Skip to content

Commit

Permalink
Add some tolerance to atlas tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 8, 2014
1 parent 732a899 commit b3f00ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/src/core/testqgsatlascomposition.cpp
Expand Up @@ -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 );
Expand All @@ -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
Expand All @@ -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();

Expand All @@ -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
Expand Down Expand Up @@ -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();

Expand All @@ -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 );
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit b3f00ec

Please sign in to comment.