diff --git a/test/ignores.json b/test/ignores.json index fbe4eac6243..5b25dae6b25 100644 --- a/test/ignores.json +++ b/test/ignores.json @@ -14,5 +14,6 @@ "render-tests/fill-extrusion-pattern/tile-buffer": "https://github.com/mapbox/mapbox-gl-js/issues/4403", "render-tests/symbol-sort-key/text-ignore-placement": "skip - text drawn over icons", "render-tests/text-variable-anchor/remember-last-placement": "skip - not sure this is correct behavior", - "render-tests/icon-image/icon-sdf-non-sdf-one-layer": "skip - render sdf icon and normal icon in one layer" + "render-tests/icon-image/icon-sdf-non-sdf-one-layer": "skip - render sdf icon and normal icon in one layer", + "render-tests/text-variable-anchor/all-anchors-tile-map-mode": "skip - mapbox-gl-js does not need to render tiles" } diff --git a/test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/expected.png b/test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/expected.png new file mode 100644 index 00000000000..ef5e7864e78 Binary files /dev/null and b/test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/expected.png differ diff --git a/test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/style.json b/test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/style.json new file mode 100644 index 00000000000..6acc08a573c --- /dev/null +++ b/test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/style.json @@ -0,0 +1,65 @@ +{ + "version": 8, + "metadata": { + "test": { + "debug": true, + "mapMode": "tile", + "height": 256 + } + }, + "center": [ + 13.418056, + 52.499167 + ], + "zoom": 14, + "sources": { + "mapbox": { + "type": "vector", + "maxzoom": 14, + "tiles": [ + "local://tiles/{z}-{x}-{y}.mvt" + ] + } + }, + "sprite": "local://sprites/sprite", + "glyphs": "local://glyphs/{fontstack}/{range}.pbf", + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "top", + "type": "symbol", + "source": "mapbox", + "source-layer": "poi_label", + "filter": [ + "==", + "maki", + "restaurant" + ], + "layout": { + "text-field": "Test Test Test", + "text-font": [ + "Open Sans Semibold", + "Arial Unicode MS Bold" + ], + "text-max-width": 5, + "text-justify": "auto", + "text-variable-anchor": [ + "center", + "top", + "bottom", + "left", + "right", + "top-left", + "top-right", + "bottom-left", + "bottom-right" + ] + } + }] +}