Skip to content

Commit

Permalink
Fix frames in html tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hugentobler committed Aug 30, 2012
1 parent 4a97a92 commit a91766d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions tests/src/core/testqgscomposerhtml.cpp
Expand Up @@ -83,10 +83,7 @@ void TestQgsComposerHtml::tableMultiFrame()
//page1
htmlItem->setUrl( QUrl( QString( "file:///%1" ).arg( QString( TEST_DATA_DIR ) + QDir::separator() + "html_table.html" ) ) );
int nFrames = htmlItem->nFrames();
for ( int i = 0; i < nFrames; ++i )
{
htmlItem->frame( i )->setFrameEnabled( true );
}
htmlItem->frame( 0 )->setFrameEnabled( true );
QgsCompositionChecker checker1( "Composer html table", mComposition, QString( QString( TEST_DATA_DIR ) + QDir::separator() +
"control_images" + QDir::separator() + "expected_composerhtml" + QDir::separator() + "composerhtml_table_multiframe1.png" ) );
if ( !checker1.testComposition( 0 ) )
Expand Down
4 changes: 1 addition & 3 deletions tests/src/python/test_qgscomposerhtml.py
Expand Up @@ -52,9 +52,7 @@ def tableMultiFrame(self):
htmlItem.setResizeMode( QgsComposerMultiFrame.RepeatUntilFinished )

htmlItem.setUrl( QUrl( QString( "file:///%1" ).arg( QString( TEST_DATA_DIR ) + QDir.separator() + "html_table.html" ) ) )
nFrames = htmlItem.nFrames()
for i in range( nFrames ):
htmlItem.frame( i ).setFrameEnabled( True )
htmlItem.frame( 0 ).setFrameEnabled( True )

result = True

Expand Down

0 comments on commit a91766d

Please sign in to comment.