Make interaction "active" an ol.Object property

This commit is contained in:
Éric Lemoine
2014-09-29 17:09:45 +02:00
parent 1a4d841a26
commit dede4f379f
2 changed files with 36 additions and 11 deletions

View File

@@ -3,13 +3,21 @@ goog.provide('ol.test.interaction.Interaction');
describe('ol.interaction.Interaction', function() {
describe('constructor', function() {
var interaction;
beforeEach(function() {
interaction = new ol.interaction.Interaction();
});
it('creates a new interaction', function() {
var interaction = new ol.interaction.Interaction();
expect(interaction).to.be.a(ol.interaction.Interaction);
expect(interaction).to.be.a(goog.events.EventTarget);
});
it('creates an active interaction', function() {
expect(interaction.getActive()).to.be(true);
});
});
describe('#getMap()', function() {