Skip to content
Permalink
Browse files

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 Mar 24, 2019
1 parent 48d2a37 commit 714a4ac77ade2c4f406a40e00d673d6ba4622844
Showing with 0 additions and 30 deletions.
  1. +0 −30 tests/src/core/testqgsmarkerlinesymbol.cpp
@@ -60,7 +60,6 @@ class TestQgsMarkerLineSymbol : public QObject
void lineOffset();
void pointNumInterval();
void pointNumVertex();
void ringFilter();

private:
bool render( const QString &fileName );
@@ -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";

0 comments on commit 714a4ac

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