Skip to content
Permalink
Browse files

Fix composer map tests

  • Loading branch information
wonder-sk committed May 11, 2016
1 parent deee8e2 commit 7eb05e2c3c01e0cb197eb891eef6a9cd0f9dcd38
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/src/core/testqgscomposermap.cpp
@@ -355,9 +355,16 @@ void TestQgsComposerMap::dataDefinedStyles()

QgsProject::instance()->visibilityPresetCollection()->insert( "test preset", rec );

// test following of preset
mComposerMap->setFollowVisibilityPreset( true );
mComposerMap->setFollowVisibilityPresetName( "test preset" );
QSet<QString> result = mComposerMap->layersToRender().toSet();
QCOMPARE( result.count(), 2 );
mComposerMap->setFollowVisibilityPresetName( QString() );

//test malformed style string
mComposerMap->setDataDefinedProperty( QgsComposerObject::MapStylePreset, true, true, "5", QString() );
QSet<QString> result = mComposerMap->layersToRender().toSet();
result = mComposerMap->layersToRender().toSet();
QCOMPARE( result, ms.layers().toSet() );

//test valid preset

0 comments on commit 7eb05e2

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