30 lines
597 B
JavaScript
30 lines
597 B
JavaScript
|
|
|
|
goog.require('ol.source.Stamen');
|
|
|
|
|
|
describe('ol.source.Stamen', function() {
|
|
|
|
describe('constructor', function() {
|
|
|
|
it('can be constructed with a custom minZoom', function() {
|
|
var source = new ol.source.Stamen({
|
|
layer: 'watercolor',
|
|
minZoom: 10
|
|
});
|
|
expect(source.getTileGrid().getMinZoom()).to.be(10);
|
|
});
|
|
|
|
it('can be constructed with a custom maxZoom', function() {
|
|
var source = new ol.source.Stamen({
|
|
layer: 'watercolor',
|
|
maxZoom: 8
|
|
});
|
|
expect(source.getTileGrid().getMaxZoom()).to.be(8);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|