Skip to content

Commit 8401b37

Browse files
committed
updated test to align with improved text positioning
Signed-off-by: Tim Deubler <tim.deubler@here.com>
1 parent b3360d6 commit 8401b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tests/specs/display/layer/setstylegroup_point_text.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('setStyleGroup Point with text', function() {
162162
{'zIndex': 1, 'type': 'Text', 'fill': '#000000', 'text': FULL_BLOCK_CHAR, 'font': FONT, 'offsetY': -24}
163163
]);
164164

165-
let colors = await getCanvasPixelColor(mapContainer, [{x: 400, y: 250}, {x: 400, y: 280}, {x: 400, y: 305}]);
165+
let colors = await getCanvasPixelColor(mapContainer, [{x: 400, y: 245}, {x: 400, y: 275}, {x: 400, y: 305}]);
166166

167167
expect(colors[0]).to.equal('#ff0000');
168168
expect(colors[1]).to.equal('#000000');
@@ -185,7 +185,7 @@ describe('setStyleGroup Point with text', function() {
185185
]);
186186

187187
let colors = await getCanvasPixelColor(mapContainer, [
188-
{x: 400, y: 325}, {x: 425, y: 355}, {x: 445, y: 325}, {x: 425, y: 300}, {x: 425, y: 325}
188+
{x: 400, y: 325}, {x: 425, y: 355}, {x: 450, y: 325}, {x: 420, y: 295}, {x: 425, y: 325}
189189
]);
190190

191191
expect(colors[0]).to.equal('#ff0000');

0 commit comments

Comments
 (0)