Skip to content

Commit f2d3164

Browse files
author
Marco Hugentobler
committed
Change composerhtml control images. Fix html test to have item frames
1 parent 88bc309 commit f2d3164

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/src/core/testqgscomposerhtml.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ void TestQgsComposerHtml::tableMultiFrame()
7878
QgsComposerFrame* htmlFrame = new QgsComposerFrame( mComposition, htmlItem, 10, 10, 100, 50 );
7979
htmlItem->addFrame( htmlFrame );
8080
htmlItem->setResizeMode( QgsComposerMultiFrame::RepeatUntilFinished );
81+
82+
bool result = true;
83+
//page1
84+
htmlItem->setUrl( QUrl( QString( "file:///%1" ).arg( QString( TEST_DATA_DIR ) + QDir::separator() + "html_table.html" ) ) );
8185
int nFrames = htmlItem->nFrames();
8286
for ( int i = 0; i < nFrames; ++i )
8387
{
8488
htmlItem->frame( i )->setFrameEnabled( true );
8589
}
86-
87-
bool result = true;
88-
//page1
89-
htmlItem->setUrl( QUrl( QString( "file:///%1" ).arg( QString( TEST_DATA_DIR ) + QDir::separator() + "html_table.html" ) ) );
9090
QgsCompositionChecker checker1( "Composer html table", mComposition, QString( QString( TEST_DATA_DIR ) + QDir::separator() +
9191
"control_images" + QDir::separator() + "expected_composerhtml" + QDir::separator() + "composerhtml_table_multiframe1.png" ) );
9292
if ( !checker1.testComposition( 0 ) )
-314 Bytes
Loading
-476 Bytes
Loading

0 commit comments

Comments
 (0)