Remove test specific to old zoom code
This commit is contained in:
parent
e52c551652
commit
21701a6fae
@ -104,32 +104,6 @@ describe('GridLayer', function () {
|
||||
map.setZoom(0, {animate: false});
|
||||
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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user