Revert "[ol.TileCache] tile cache size is not 1"

This reverts commit 3f9fd2f47a.
This commit is contained in:
Éric Lemoine
2012-06-22 16:51:28 +02:00
parent 3f9fd2f47a
commit c501559413
2 changed files with 5 additions and 23 deletions
-18
View File
@@ -1,23 +1,5 @@
describe('ol.TileCache', function() {
describe('add tiles to cache', function() {
var Tile, tilecache;
beforeEach(function() {
Tile = ol.Tile.createConstructor(200, 200);
tilecache = new ol.TileCache(5);
});
it('does add tiles, without exceeding cache size', function() {
for (var i=0; i<6; i++) {
var url = 'url' + i;
var tile = new Tile(url);
tilecache.set(url, tile);
}
expect(tilecache.getCount()).toEqual(5);
});
});
describe('exceed the cache capacity', function() {
var Tile, tilecache, tile;