Skip to content
Permalink
Browse files

[tests] Fix failing gradient tests

  • Loading branch information
nyalldawson committed Dec 28, 2013
1 parent 089fbe9 commit 2e107f23b9d8dd626ef23e197cb7eb9afbb5663e
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/core/testqgsgradients.cpp
@@ -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.
You can’t perform that action at this time.