Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove duplicate test
This is just a direct copy of another test from this file -
the actual ring filter test is in Python
  • Loading branch information
nyalldawson committed Apr 2, 2019
1 parent 48d2a37 commit 714a4ac
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tests/src/core/testqgsmarkerlinesymbol.cpp
Expand Up @@ -60,7 +60,6 @@ class TestQgsMarkerLineSymbol : public QObject
void lineOffset();
void pointNumInterval();
void pointNumVertex();
void ringFilter();

private:
bool render( const QString &fileName );
Expand Down Expand Up @@ -198,35 +197,6 @@ void TestQgsMarkerLineSymbol::pointNumVertex()
QVERIFY( render( "point_num_vertex" ) );
}

void TestQgsMarkerLineSymbol::ringFilter()
{
mMapSettings->setLayers( QList<QgsMapLayer *>() << mLinesLayer );

QgsMarkerLineSymbolLayer *ml = new QgsMarkerLineSymbolLayer();
ml->setPlacement( QgsTemplatedLineSymbolLayerBase::Vertex );
QgsLineSymbol *lineSymbol = new QgsLineSymbol();
lineSymbol->changeSymbolLayer( 0, ml );
QgsSingleSymbolRenderer *r = new QgsSingleSymbolRenderer( lineSymbol );

// make sub-symbol
QgsStringMap props;
props[QStringLiteral( "color" )] = QStringLiteral( "255,0,0" );
props[QStringLiteral( "size" )] = QStringLiteral( "2" );
props[QStringLiteral( "outline_style" )] = QStringLiteral( "no" );
QgsSimpleMarkerSymbolLayer *marker = static_cast< QgsSimpleMarkerSymbolLayer * >( QgsSimpleMarkerSymbolLayer::create( props ) );

marker->setDataDefinedProperty( QgsSymbolLayer::PropertySize, QgsProperty::fromExpression( QStringLiteral( "@geometry_point_num * 2" ) ) );

QgsMarkerSymbol *subSymbol = new QgsMarkerSymbol();
subSymbol->changeSymbolLayer( 0, marker );
ml->setSubSymbol( subSymbol );

mLinesLayer->setRenderer( r );

mMapSettings->setExtent( QgsRectangle( -140, -140, 140, 140 ) );
QVERIFY( render( "point_num_vertex" ) );
}

bool TestQgsMarkerLineSymbol::render( const QString &testType )
{
mReport += "<h2>" + testType + "</h2>\n";
Expand Down

0 comments on commit 714a4ac

Please sign in to comment.