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