Merge pull request #4738 from fredj/more_tests
Add unit tests for ol.control.Rotate and ol.control.Zoom
This commit is contained in:
@@ -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');
|
||||||
@@ -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');
|
||||||
Reference in New Issue
Block a user