Additional tileset getters.

This commit is contained in:
Tim Schaub
2012-06-21 00:42:28 +02:00
parent d8b31ab1ff
commit 5287677489
2 changed files with 40 additions and 3 deletions

View File

@@ -5,4 +5,17 @@ describe("ol.TileSet", function() {
expect(tileset).toBeA(ol.TileSet);
});
});
describe("getter methods", function() {
var tileSet = new ol.TileSet([], 123, 456, 10);
it("allows getting tile width", function() {
expect(tileSet.getTileWidth()).toBe(123);
});
it("allows getting tile height", function() {
expect(tileSet.getTileHeight()).toBe(456);
});
it("allows getting resolution", function() {
expect(tileSet.getResolution()).toBe(10);
});
});
});