Skip to content

Commit

Permalink
Update atlas unit tests (fix the overview map frame style)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Oct 4, 2012
1 parent e4364f3 commit ea44e0f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/core/testqgscomposermapatlas.cpp
Expand Up @@ -102,6 +102,12 @@ void TestQgsComposerMapAtlas::initTestCase()
mComposition->addComposerMap( mOverview );
mOverview->setNewExtent( QgsRectangle( 49670.718, 6415139.086, 699672.519, 7065140.887 ) );

// set the fill symbol of the overview map
QgsStringMap props2;
props2.insert( "color", "127,0,0,127" );
QgsFillSymbolV2* fillSymbol2 = QgsFillSymbolV2::createSimple( props2 );
mOverview->setOverviewFrameMapSymbol( fillSymbol2 );

// header label
mLabel1 = new QgsComposerLabel( mComposition );
mComposition->addComposerLabel( mLabel1 );
Expand Down
6 changes: 6 additions & 0 deletions tests/src/python/test_qgscomposermapatlas.py
Expand Up @@ -69,6 +69,12 @@ def testCase(self):
nextent = QgsRectangle( 49670.718, 6415139.086, 699672.519, 7065140.887 )
mOverview.setNewExtent( nextent )

# set the fill symbol of the overview map
props2 = { "color": "127,0,0,127" }
fillSymbol2 = QgsFillSymbolV2.createSimple( props2 )
mOverview.setOverviewFrameMapSymbol( fillSymbol2 );


# header label
mLabel1 = QgsComposerLabel( mComposition )
mComposition.addComposerLabel( mLabel1 )
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ea44e0f

Please sign in to comment.