Skip to content

Commit

Permalink
[tests] Fix failing gradient tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 28, 2013
1 parent 089fbe9 commit 2e107f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/testqgsgradients.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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" ) );
}

Expand Down

0 comments on commit 2e107f2

Please sign in to comment.