Skip to content

Commit

Permalink
Fix some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 6, 2014
1 parent b9f5477 commit 6cf3003
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions tests/src/core/testqgsatlascomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void TestQgsAtlasComposition::initTestCase()

mAtlas = &mComposition->atlasComposition();
mAtlas->setCoverageLayer( mVectorLayer );
mAtlas->setEnabled( true );
mComposition->setAtlasMode( QgsComposition::ExportAtlas );

// an overview
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsblendmodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ bool TestQgsBlendModes::imageCheck( QString theTestType )
QgsRenderChecker myChecker;
myChecker.setControlName( "expected_" + theTestType );
myChecker.setMapSettings( mMapSettings );
bool myResultFlag = myChecker.runTest( theTestType );
bool myResultFlag = myChecker.runTest( theTestType, 1500 );
mReport += myChecker.report();
return myResultFlag;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgscomposerpaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void TestQgsComposerPaper::markerLinePaper()
{
mComposition->setPageStyleSymbol( mMarkerLineSymbol );
QgsCompositionChecker checker( "composerpaper_markerborder", mComposition );
QVERIFY( checker.testComposition( mReport ) );
QVERIFY( checker.testComposition( mReport, 0, 60 ) );
}

QTEST_MAIN( TestQgsComposerPaper )
Expand Down
1 change: 1 addition & 0 deletions tests/src/python/test_qgsatlascomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def testCase(self):
# the atlas
self.mAtlas = self.mComposition.atlasComposition()
self.mAtlas.setCoverageLayer( mVectorLayer )
self.mAtlas.setEnabled( True )
self.mComposition.setAtlasMode( QgsComposition.ExportAtlas )

# an overview
Expand Down
8 changes: 4 additions & 4 deletions tests/src/python/test_qgsblendmodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def testVectorBlending(self):
checker.setControlName("expected_vector_blendmodes")
checker.setMapSettings(self.mapSettings)

myResult = checker.runTest("vector_blendmodes");
myResult = checker.runTest("vector_blendmodes", 1500);
myMessage = ('vector blending failed')
assert myResult, myMessage

Expand All @@ -141,7 +141,7 @@ def testVectorFeatureBlending(self):
checker.setControlName("expected_vector_featureblendmodes")
checker.setMapSettings(self.mapSettings)

myResult = checker.runTest("vector_featureblendmodes");
myResult = checker.runTest("vector_featureblendmodes", 1500);
myMessage = ('vector feature blending failed')
assert myResult, myMessage

Expand All @@ -165,7 +165,7 @@ def testVectorLayerTransparency(self):
checker.setControlName("expected_vector_layertransparency")
checker.setMapSettings(self.mapSettings)

myResult = checker.runTest("vector_layertransparency");
myResult = checker.runTest("vector_layertransparency", 1500);
myMessage = ('vector layer transparency failed')
assert myResult, myMessage

Expand All @@ -184,7 +184,7 @@ def testRasterBlending(self):
checker.setControlName("expected_raster_blendmodes")
checker.setMapSettings(self.mapSettings)

myResult = checker.runTest("raster_blendmodes");
myResult = checker.runTest("raster_blendmodes", 1500);
myMessage = ('raster blending failed')
assert myResult, myMessage

Expand Down

0 comments on commit 6cf3003

Please sign in to comment.