ol.style.RegularShape#getRadius2

returns undefined if no radius2 was provided in the constructor
This commit is contained in:
simonseyock
2017-04-29 11:41:28 +02:00
parent dd73ac8892
commit 25aeb58c87
2 changed files with 11 additions and 24 deletions

View File

@@ -36,22 +36,6 @@ describe('ol.style.RegularShape', function() {
expect(style.getRadius2()).to.eql(10);
});
it('will use radius for radius2 if radius2 not defined', function() {
var style = new ol.style.RegularShape({
radius: 5
});
expect(style.getRadius()).to.eql(5);
expect(style.getRadius2()).to.eql(5);
});
it('will use radius1 for radius2 if radius2 not defined', function() {
var style = new ol.style.RegularShape({
radius1: 5
});
expect(style.getRadius()).to.eql(5);
expect(style.getRadius2()).to.eql(5);
});
it('creates a canvas if no atlas is used (no fill-style)', function() {
var style = new ol.style.RegularShape({radius: 10});
expect(style.getImage()).to.be.an(HTMLCanvasElement);