From e53d8226db915b18ae8df3900e284d5a8901fa93 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 27 Jan 2016 15:43:25 +0100 Subject: [PATCH 1/2] Add tests for ol.control.Rotate --- test/spec/ol/control/rotatecontrol.test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/spec/ol/control/rotatecontrol.test.js diff --git a/test/spec/ol/control/rotatecontrol.test.js b/test/spec/ol/control/rotatecontrol.test.js new file mode 100644 index 0000000000..8766da436f --- /dev/null +++ b/test/spec/ol/control/rotatecontrol.test.js @@ -0,0 +1,16 @@ +goog.provide('ol.test.control.Rotate'); + +describe('ol.control.Rotate', function() { + + describe('constructor', function() { + + it('can be constructed without arguments', function() { + var instance = new ol.control.Rotate(); + expect(instance).to.be.an(ol.control.Rotate); + }); + + }); + +}); + +goog.require('ol.control.Rotate'); From 2b523fff7c59111cd213928d6efef8fd7ff09fe6 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 27 Jan 2016 15:43:34 +0100 Subject: [PATCH 2/2] Add tests for ol.control.Zoom --- test/spec/ol/control/zoomcontrol.test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/spec/ol/control/zoomcontrol.test.js diff --git a/test/spec/ol/control/zoomcontrol.test.js b/test/spec/ol/control/zoomcontrol.test.js new file mode 100644 index 0000000000..425b78a0dc --- /dev/null +++ b/test/spec/ol/control/zoomcontrol.test.js @@ -0,0 +1,16 @@ +goog.provide('ol.test.control.Zoom'); + +describe('ol.control.Zoom', function() { + + describe('constructor', function() { + + it('can be constructed without arguments', function() { + var instance = new ol.control.Zoom(); + expect(instance).to.be.an(ol.control.Zoom); + }); + + }); + +}); + +goog.require('ol.control.Zoom');