Replaces remaining vectorimage.tests.js

Transforms the old rendering tests for the VectorImageLayer
decluttering to the new rendering test approach.
This commit is contained in:
Kai Volland
2019-03-21 15:18:10 +01:00
parent 5665da6518
commit 681a8f1d9c
14 changed files with 104 additions and 226 deletions

View File

@@ -20,7 +20,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'hello',
font: '14px "Ubuntu Regular", sans-serif',
font: '14px "Ubuntu Regular"',
scale: 2,
fill: new Fill({
color: 'red'
@@ -39,7 +39,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'upside down',
font: '14px "Ubuntu Regular", sans-serif',
font: '14px "Ubuntu Regular"',
rotation: Math.PI,
stroke: new Stroke({
color: 'red',
@@ -55,7 +55,7 @@ feature = new Feature({
});
feature.setStyle(new Style({
text: new Text({
font: '"Ubuntu Regular", sans-serif',
font: '"Ubuntu Regular"',
text: 'rotateWithView',
rotateWithView: true,
stroke: new Stroke({
@@ -72,7 +72,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'hello',
font: '14px "Ubuntu Regular", sans-serif',
font: '14px "Ubuntu Regular"',
padding: [1, 2, 3, 5],
backgroundFill: new Fill({
color: 'rgba(55, 55, 55, 0.25)'
@@ -92,7 +92,7 @@ feature = new Feature({
feature.setStyle(new Style({
text: new Text({
text: 'hello',
font: '14px "Ubuntu Regular", sans-serif',
font: '14px "Ubuntu Regular"',
padding: [1, 2, 3, 5],
backgroundFill: new Fill({
color: 'rgba(55, 55, 55, 0.25)'