Skip to content

Commit

Permalink
Some fixes to TestQgsComposerTableV2
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 21, 2014
1 parent a554434 commit eea0451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/src/core/testqgscomposertablev2.cpp
Expand Up @@ -297,24 +297,22 @@ void TestQgsComposerTableV2::attributeTableRender()
{
mComposerAttributeTable->setMaximumNumberOfFeatures( 20 );
QgsCompositionChecker checker( "composerattributetable_render", mComposition );
bool result = checker.testComposition( mReport );
bool result = checker.testComposition( mReport, 0 );
QVERIFY( result );
}

void TestQgsComposerTableV2::attributeTableExtend()
{
//test that adding and removing frames automatically does not result in a crash
mComposerAttributeTable->removeFrame( 1 );

//force auto creation of some new frames
mComposerAttributeTable->setResizeMode( QgsComposerMultiFrame::ExtendToNextPage );

mComposition->setSelectedItem( mComposerAttributeTable->frame( 1 ) );

QgsCompositionChecker checker( "composerattributetable_render", mComposition );

//now auto remove extra created frames
mComposerAttributeTable->setMaximumNumberOfFeatures( 1 );
bool result = checker.testComposition( mReport, 1 );
}

void TestQgsComposerTableV2::attributeTableRepeat()
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eea0451

Please sign in to comment.