Skip to content

Commit

Permalink
Raster marker test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 17, 2020
1 parent c784831 commit 2785147
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/src/core/testqgsrastermarker.cpp
Expand Up @@ -54,6 +54,7 @@ class TestQgsRasterMarker : public QObject
void rasterMarkerSymbol();
void anchor();
void alpha();
void symbolOpacity();
void rotation();
void fixedAspectRatio();

Expand Down Expand Up @@ -166,6 +167,16 @@ void TestQgsRasterMarker::alpha()
QVERIFY( result );
}

void TestQgsRasterMarker::symbolOpacity()
{
// test combination of layer opacity AND symbol level opacity
mRasterMarker->setOpacity( 0.5 );
mMarkerSymbol->setOpacity( 0.5 );
bool result = imageCheck( QStringLiteral( "rastermarker_opacity" ) );
mMarkerSymbol->setOpacity( 1.0 );
QVERIFY( result );
}

void TestQgsRasterMarker::rotation()
{
mReport += QLatin1String( "<h2>Raster marker rotation</h2>\n" );
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2785147

Please sign in to comment.