Skip to content

Commit

Permalink
aligned test to 3.x version
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Sep 12, 2017
1 parent 0aa8c84 commit 07009f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/src/python/test_qgssymbollayerv2_readsld.py
Expand Up @@ -331,13 +331,8 @@ def testSymbolSize(self):

sld_size_px = 6

# values for qgis 3.X
#sld_displacement_x_px = 3.3
#sld_displacement_y_px = 6.6

# values for qgis 2.x
sld_displacement_x_px = 0
sld_displacement_y_px = 0
sld_displacement_x_px = 3.3
sld_displacement_y_px = 6.6

sl = layer.rendererV2().symbol().symbolLayers()[0]
size = sl.size()
Expand Down
4 changes: 4 additions & 0 deletions tests/testdata/symbol_layer/QgsSimpleMarkerSymbolLayerV2.sld
Expand Up @@ -9,6 +9,10 @@
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Displacement>
<se:DisplacementX>3.3</se:DisplacementX>
<se:DisplacementY>6.6</se:DisplacementY>
</se:Displacement>
<se:Mark>
<se:WellKnownName>pentagon</se:WellKnownName>
<se:Fill>
Expand Down

0 comments on commit 07009f8

Please sign in to comment.