Skip to content

Commit

Permalink
Test apply SLD PointSymbolizer on single centroid for polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 12, 2019
1 parent 93656c2 commit 052b222
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/python/test_qgssymbollayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,11 @@ def testQgsCentroidFillSymbolLayer(self):
mMessage = 'Expected "%s" got "%s"' % (mExpectedValue, mValue)
assert mExpectedValue == mValue, mMessage

mExpectedValue = False
mValue = mSymbolLayer.pointOnAllParts()
mMessage = 'Expected "%s" got "%s"' % (mExpectedValue, mValue)
assert mExpectedValue == mValue, mMessage

# test colors, need to make sure colors are passed/retrieved from subsymbol
mSymbolLayer.setColor(QColor(150, 50, 100))
self.assertEqual(mSymbolLayer.color(), QColor(150, 50, 100))
Expand Down

0 comments on commit 052b222

Please sign in to comment.