Handle setActive(false) on an interaction without map

This commit is contained in:
Frederic Junod committed 2017-06-15 08:41:52 +02:00
1 parent c46bc1f02a
commit 3e7aecd094
2 files changed
+18 -6

No files matched your search

@@ -143,6 +143,19 @@ describe('ol.interaction.Translate', function() {
});
describe('setActive', function() {
it('works when the map is not set', function() {
var translate = new ol.interaction.Translate({
features: features
});
expect(translate.getActive()).to.be(true);
translate.setActive(false);
expect(translate.getActive()).to.be(false);
});
});
describe('moving features, with features option', function() {
var translate;