test getCoordinateAt returns Z and M values

This commit is contained in:
mike-000
2020-06-17 15:56:36 +01:00
committed by GitHub
parent 19f3c6b94a
commit 136936979f

View File

@@ -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');