add a click handler

This commit is contained in:
Éric Lemoine
2012-07-11 17:44:33 +02:00
parent da11a8c34d
commit d73410a9b3
4 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
describe('ol.handler.Click', function() {
var map, elt;
beforeEach(function() {
map = new ol.Map();
elt = goog.dom.createDom('div');
});
describe('create a drag handler', function() {
it('returns an ol.handler.Click instance', function() {
var handler = new ol.handler.Click(map, elt, {});
expect(handler).toBeA(ol.handler.Click);
});
});
});