From cb8e4e0ee789f035b8985e3b29e10dc719ae035f Mon Sep 17 00:00:00 2001 From: Alvin Lindstam Date: Sun, 23 Aug 2015 22:17:42 +0200 Subject: [PATCH] Fix miswritten test --- test/spec/ol/interaction/modifyinteraction.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/spec/ol/interaction/modifyinteraction.test.js b/test/spec/ol/interaction/modifyinteraction.test.js index 96c96f63d9..eba177c32a 100644 --- a/test/spec/ol/interaction/modifyinteraction.test.js +++ b/test/spec/ol/interaction/modifyinteraction.test.js @@ -156,13 +156,13 @@ describe('ol.interaction.Modify', function() { map.addInteraction(modify); var first = features[0]; - var second = features[0]; + var second = features[1]; events = trackEvents(first, modify); expect(first.getGeometry().getRevision()).to.equal(1); expect(first.getGeometry().getCoordinates()[0]).to.have.length(5); - expect(second.getGeometry().getRevision()).to.equal(1); + expect(second.getGeometry().getRevision()).to.equal(2); expect(second.getGeometry().getCoordinates()[0]).to.have.length(5); simulateEvent('pointerdown', 10, -20, false, 0); @@ -172,7 +172,7 @@ describe('ol.interaction.Modify', function() { expect(first.getGeometry().getRevision()).to.equal(2); expect(first.getGeometry().getCoordinates()[0]).to.have.length(4); - expect(second.getGeometry().getRevision()).to.equal(2); + expect(second.getGeometry().getRevision()).to.equal(3); expect(second.getGeometry().getCoordinates()[0]).to.have.length(4); validateEvents(events, features);