Remove test specific to old zoom code

This commit is contained in:
John Firebaugh 2015-02-06 16:36:43 -08:00
parent e52c551652
commit 21701a6fae

View File

@ -104,32 +104,6 @@ describe('GridLayer', function () {
map.setZoom(0, {animate: false}); map.setZoom(0, {animate: false});
clock.tick(250); clock.tick(250);
}); });
it('prunes and retains the correct tiles for back-to-back zooms', function () {
map.setView([0, 0], 1);
var grid = L.gridLayer();
var tiles = {};
grid.createTile = function (coords) {
tiles[grid._tileCoordsToKey(coords)] = true;
return document.createElement('div');
};
map.addLayer(grid);
clock.tick(500);
map.setZoom(0, {animate: false});
clock.tick(250);
map.setZoom(1, {animate: false});
clock.tick(500);
var tileContainers = div.querySelectorAll('.leaflet-tile-container');
expect(tileContainers.length).to.eql(2);
expect(tileContainers[0].childNodes.length).to.equal(8);
expect(tileContainers[1].childNodes.length).to.equal(0);
});
}); });
describe("#onAdd", function () { describe("#onAdd", function () {