Ensure we cannot set both origin and origins in the tilegrid

This commit is contained in:
Bruno Binet
2013-03-03 20:32:39 +01:00
parent f7a895a823
commit 7c440d087f
2 changed files with 17 additions and 0 deletions
+14
View File
@@ -68,6 +68,20 @@ describe('ol.tilegrid.TileGrid', function() {
});
});
describe('create with both origin and multiple origins', function() {
it('throws an exception', function() {
expect(function() {
return new ol.tilegrid.TileGrid({
resolutions: [100, 50, 25, 10],
extent: extent,
origins: [origin, origin, origin, origin],
origin: origin,
tileSize: tileSize
});
}).toThrow();
});
});
describe('create with too few origins', function() {
it('throws an exception', function() {
expect(function() {