Make interaction "active" an ol.Object property
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user