Skip to content
Permalink
Browse files
[tests] Fix failing gradient tests
  • Loading branch information
nyalldawson committed Dec 28, 2013
1 parent 089fbe9 commit 2e107f2
Showing 1 changed file with 2 additions and 0 deletions.
@@ -94,6 +94,7 @@ void TestQgsGradients::initTestCase()
QFileInfo myPolyFileInfo( myPolysFileName );
mpPolysLayer = new QgsVectorLayer( myPolyFileInfo.filePath(),
myPolyFileInfo.completeBaseName(), "ogr" );
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
// Register the layer with the registry
QgsMapLayerRegistry::instance()->addMapLayers(
QList<QgsMapLayer *>() << mpPolysLayer );
@@ -244,6 +245,7 @@ void TestQgsGradients::gradientSymbolFromQml()
{
mReport += "<h2>Gradient symbol from QML test</h2>\n";
QVERIFY( setQml( "gradient" ) );
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
QVERIFY( imageCheck( "gradient_from_qml" ) );
}

0 comments on commit 2e107f2

Please sign in to comment.