Merge pull request #4738 from fredj/more_tests

Add unit tests for ol.control.Rotate and ol.control.Zoom
This commit is contained in:
Frédéric Junod
2016-01-27 16:46:25 +01:00
2 changed files with 32 additions and 0 deletions

View File

@@ -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');

View File

@@ -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');