Clone backgroundFill and backgroundStroke

This commit is contained in:
Andreas Hocevar
2017-12-26 19:33:47 +01:00
parent f2f5c5e958
commit 0158738aff
2 changed files with 11 additions and 1 deletions

View File

@@ -52,6 +52,12 @@ describe('ol.style.Text', function() {
}),
stroke: new _ol_style_Stroke_({
color: '#319FD3'
}),
backgroundFill: new _ol_style_Fill_({
color: 'white'
}),
backgroundStroke: new _ol_style_Stroke_({
color: 'black'
})
});
var clone = original.clone();
@@ -66,6 +72,8 @@ describe('ol.style.Text', function() {
expect(original.getTextBaseline()).to.eql(clone.getTextBaseline());
expect(original.getStroke().getColor()).to.eql(clone.getStroke().getColor());
expect(original.getFill().getColor()).to.eql(clone.getFill().getColor());
expect(original.getBackgroundStroke().getColor()).to.eql(clone.getBackgroundStroke().getColor());
expect(original.getBackgroundFill().getColor()).to.eql(clone.getBackgroundFill().getColor());
});
it('the clone does not reference the same objects as the original', function() {