From 136936979f60a37857fb396323e783e0b3deef3d Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 17 Jun 2020 15:56:36 +0100 Subject: [PATCH] test getCoordinateAt returns Z and M values --- test/spec/ol/geom/linestring.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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');