diff --git a/test/ol.html b/test/ol.html index b06b645fdf..956b331983 100644 --- a/test/ol.html +++ b/test/ol.html @@ -88,6 +88,8 @@ + + diff --git a/test/spec/ol/handler/Drag.test.js b/test/spec/ol/handler/Drag.test.js new file mode 100644 index 0000000000..18b5e32117 --- /dev/null +++ b/test/spec/ol/handler/Drag.test.js @@ -0,0 +1,17 @@ +describe('ol.handler.Drag', 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.Drag instance', function() { + var handler = new ol.handler.Drag(map, elt); + expect(handler).toBeA(ol.handler.Drag); + }); + + }); +}); diff --git a/test/spec/ol/handler/MouseWheel.test.js b/test/spec/ol/handler/MouseWheel.test.js new file mode 100644 index 0000000000..5135bfbc0f --- /dev/null +++ b/test/spec/ol/handler/MouseWheel.test.js @@ -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); + }); + + }); +});