Files
openlayers/test/spec/api/layer/xyz.test.js
2012-06-20 18:09:10 +02:00

18 lines
398 B
JavaScript

describe('ol.layer.xyz', function() {
it("doesn't allow empty construction", function() {
expect(function() {
// nowhere
var layer = ol.layer.xyz();
}).toThrow();
});
it("creates an ol.layer.XYZ instance", function() {
var layer = ol.layer.xyz({url: 'http://foo/{x}/{y}/{z}'});
expect(layer).toBeA(ol.layer.XYZ);
});
});