Skip to content
Permalink
Browse files

Some fixes to TestQgsComposerTableV2

  • Loading branch information
nyalldawson committed Sep 21, 2014
1 parent a554434 commit eea0451b790058fd7b252ddc7eaa53904dccc8fd
@@ -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()
Binary file not shown.

0 comments on commit eea0451

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