base tests for ol.handler.Drag and ol.handler.MouseWheel

This commit is contained in:
Éric Lemoine
2012-07-09 21:09:09 +02:00
parent aebfb643ac
commit 7c7cd08494
3 changed files with 36 additions and 0 deletions

View File

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