add a ol.layer.wms factory

This commit is contained in:
Éric Lemoine
2012-06-23 21:53:45 +02:00
parent 0b36e10f8f
commit b615eb94b7
5 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
describe('ol.layer.wms', function() {
describe('create a wms layer', function() {
it('creates an ol.layer.WMS instance', function() {
var wms = ol.layer.wms({
url: 'http://wms',
layers: ['layer1', 'layer2'],
format: 'image/png'
});
expect(wms).toBeA(ol.layer.WMS);
});
});
});