Return if a vertex was removed in ol.interaction.Modify#removeVertex_

This commit is contained in:
Frederic Junod
2016-07-04 17:07:40 +02:00
parent b5da32340e
commit 460ea4e809
2 changed files with 5 additions and 3 deletions

View File

@@ -280,8 +280,9 @@ describe('ol.interaction.Modify', function() {
simulateEvent('pointerdown', 40, 0, false, 0);
simulateEvent('pointerup', 40, 0, false, 0);
modify.removePoint();
var removed = modify.removePoint();
expect(removed).to.be(true);
expect(first.getGeometry().getRevision()).to.equal(firstRevision + 1);
expect(first.getGeometry().getCoordinates()).to.have.length(4);
expect(first.getGeometry().getCoordinates()[3][0]).to.equal(40);