Check ol.source.UrlTile#urls property for null value

Fixes #4446
This commit is contained in:
Frederic Junod
2015-11-18 11:30:10 +01:00
parent 77ca38aa10
commit aef097e348
3 changed files with 17 additions and 5 deletions

View File

@@ -13,6 +13,16 @@ describe('ol.source.TileWMS', function() {
};
});
describe('constructor', function() {
it('can be constructed without url or urls params', function() {
var source = new ol.source.TileWMS({
projection: 'EPSG:3857',
tileGrid: ol.tilegrid.createXYZ({maxZoom: 6})
});
expect(source).to.be.an(ol.source.TileWMS);
});
});
describe('#getTile', function() {
it('returns a tile with the expected URL', function() {