Merge pull request #2766 from elemoine/interaction-object

Make interaction "active" an ol.Object property
This commit is contained in:
Éric Lemoine
2014-09-30 09:04:28 +02:00
2 changed files with 36 additions and 11 deletions
+9 -1
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() {