@@ -57,6 +57,8 @@ def checkTest(self, **kwargs):
57
57
58
58
def test_default_label (self ):
59
59
# Default label placement, with text size in points
60
+ self ._Mismatches ['TestCanvasPoint' ] = 776 ;
61
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
60
62
self .checkTest ()
61
63
62
64
def test_text_size_map_unit (self ):
@@ -65,15 +67,21 @@ def test_text_size_map_unit(self):
65
67
font = QFont (self ._TestFont )
66
68
font .setPointSizeF (460 )
67
69
self .lyr .textFont = font
70
+ self ._Mismatches ['TestCanvasPoint' ] = 776 ;
71
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
68
72
self .checkTest ()
69
73
70
74
def test_text_color (self ):
75
+ self ._Mismatches ['TestCanvasPoint' ] = 774 ;
76
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
71
77
# Label color change
72
78
self .lyr .textColor = Qt .blue
73
79
self .checkTest ()
74
80
75
81
def test_background_rect (self ):
76
82
self .lyr .shapeDraw = True
83
+ self ._Mismatches ['TestCanvasPoint' ] = 776 ;
84
+ self ._ColorTols ['TestComposerPdfPoint' ] = 1 ;
77
85
self .checkTest ()
78
86
79
87
def test_background_rect_w_offset (self ):
@@ -89,6 +97,9 @@ def test_background_rect_w_offset(self):
89
97
self .lyr .shapeDraw = True
90
98
self .lyr .shapeOffsetUnits = QgsPalLayerSettings .MapUnits
91
99
self .lyr .shapeOffset = QPointF (- 2900.0 , - 450.0 )
100
+
101
+ self ._Mismatches ['TestCanvasPoint' ] = 774 ;
102
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
92
103
self .checkTest ()
93
104
94
105
def test_background_svg (self ):
@@ -107,6 +118,8 @@ def test_background_svg(self):
107
118
self .lyr .shapeSizeType = QgsPalLayerSettings .SizeBuffer
108
119
self .lyr .shapeSize = QPointF (100.0 , 0.0 )
109
120
self ._Mismatches ['TestComposerPdfVsComposerPoint' ] = 580
121
+ self ._Mismatches ['TestCanvasPoint' ] = 776 ;
122
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
110
123
self .checkTest ()
111
124
112
125
def test_background_svg_w_offset (self ):
@@ -128,6 +141,8 @@ def test_background_svg_w_offset(self):
128
141
self .lyr .shapeOffsetUnits = QgsPalLayerSettings .MapUnits
129
142
self .lyr .shapeOffset = QPointF (- 2850.0 , 500.0 )
130
143
self ._Mismatches ['TestComposerPdfVsComposerPoint' ] = 760
144
+ self ._Mismatches ['TestCanvasPoint' ] = 776 ;
145
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
131
146
self .checkTest ()
132
147
133
148
def test_partials_labels_enabled (self ):
@@ -138,6 +153,8 @@ def test_partials_labels_enabled(self):
138
153
# Enable partials labels
139
154
self ._Pal .setShowingPartialsLabels (True )
140
155
self ._Pal .saveEngineSettings ()
156
+ self ._Mismatches ['TestCanvasPoint' ] = 779 ;
157
+ self ._ColorTols ['TestComposerPdfPoint' ] = 2 ;
141
158
self .checkTest ()
142
159
143
160
def test_partials_labels_disabled (self ):
0 commit comments