Skip to content
Permalink
Browse files

Fix html test

  • Loading branch information
mhugent committed Aug 8, 2012
1 parent 852c5e7 commit 12f521eb559e10e4491e999fc2255e6892eb526a
Showing with 3 additions and 2 deletions.
  1. +2 −1 tests/src/core/qgscompositionchecker.cpp
  2. +1 −1 tests/src/core/testqgscomposerhtml.cpp
@@ -41,7 +41,8 @@ bool QgsCompositionChecker::testComposition( int page )
return false;
}

#if 0 //fake mode to generate expected image
#if 0
//fake mode to generate expected image
//assume 300 dpi and size of the control image 3507 * 2480
QImage outputImage( QSize( 3507, 2480 ), QImage::Format_ARGB32 );
mComposition->setPlotStyle( QgsComposition::Print );
@@ -74,7 +74,7 @@ void TestQgsComposerHtml::table()
void TestQgsComposerHtml::tableMultiFrame()
{
QgsComposerHtml* htmlItem = new QgsComposerHtml( mComposition, false );
QgsComposerFrame* htmlFrame = new QgsComposerFrame( mComposition, htmlItem, 0, 0, 100, 200 );
QgsComposerFrame* htmlFrame = new QgsComposerFrame( mComposition, htmlItem, 10, 10, 100, 50 );
htmlItem->addFrame( htmlFrame );
htmlItem->setResizeMode( QgsComposerMultiFrame::ExtendToNextPage );
bool result = true;

0 comments on commit 12f521e

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