diff --git a/test/spec/ol/geom/linestring.test.js b/test/spec/ol/geom/linestring.test.js index e82ec01b84..13e572cf2c 100644 --- a/test/spec/ol/geom/linestring.test.js +++ b/test/spec/ol/geom/linestring.test.js @@ -427,6 +427,12 @@ describe('ol.geom.LineString', function () { ); }); + describe('#getCoordinateAt', function () { + it('returns the expected value', function () { + expect(lineString.getCoordinateAt(0.5)).to.eql([2.5, 3.5, 4.5]); + }); + }); + describe('#getCoordinateAtM', function () { it('returns the expected value', function () { expect(lineString.getCoordinateAtM(2, false)).to.be(null); @@ -463,6 +469,12 @@ describe('ol.geom.LineString', function () { ]); }); + describe('#getCoordinateAt', function () { + it('returns the expected value', function () { + expect(lineString.getCoordinateAt(0.5)).to.eql([11, -11, 22, 11]); + }); + }); + describe('#getCoordinateAtM', function () { it('returns the expected value', function () { expect(lineString.getLayout()).to.be('XYZM');