Add missing dispose calls for webgl renderer tests

This commit is contained in:
Maximilian Krög
2022-02-06 22:02:05 +01:00
parent a86f0704f3
commit 700cdad1e2
7 changed files with 85 additions and 68 deletions

View File

@@ -469,6 +469,7 @@ describe('ol/Map', function () {
document.body.removeChild(map.getTargetElement());
map.setTarget(null);
map.dispose();
map.getLayers().forEach((layer) => layer.dispose());
});
it('triggers when all tiles and sources are loaded and faded in', function (done) {