Skip to content
Permalink
Browse files

Test apply SLD PointSymbolizer on single centroid for polygon

  • Loading branch information
rldhont committed Apr 12, 2019
1 parent 8d66402 commit 5538cf88b6dddf211d8e4ab4fcaa0a3471306264
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/src/python/test_qgssymbollayer.py
@@ -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))

0 comments on commit 5538cf8

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