Skip to content

Commit 96ca288

Browse files
committed
2 parents 73ef91a + 8afdb82 commit 96ca288

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/openlayers/control/ChangeTileVersionSpec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import View from 'ol/View';
66
import TileLayer from 'ol/layer/Tile';
77

88
describe('openlayers_ChangeTileVersion', () => {
9-
var map, baseLayer;
9+
var map, baseLayer,testDiv;
1010
var tileVersions = [
1111
{
1212
desc: "V1",
@@ -45,7 +45,7 @@ describe('openlayers_ChangeTileVersion', () => {
4545

4646
}];
4747
beforeAll(() => {
48-
var testDiv = window.document.createElement("div");
48+
testDiv = window.document.createElement("div");
4949
testDiv.setAttribute("id", "map");
5050
testDiv.style.styleFloat = "left";
5151
testDiv.style.marginLeft = "8px";
@@ -72,6 +72,9 @@ describe('openlayers_ChangeTileVersion', () => {
7272
projection: 'EPSG:4326'
7373
}));
7474
});
75+
afterAll(() => {
76+
document.body.removeChild(testDiv);
77+
});
7578

7679
it("initialize", () => {
7780
var options = {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy