Commit 8c717ba5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

new popover API requires destroy call

parent c62eb786
......@@ -292,6 +292,8 @@ describe('CustomMap', function () {
}).then(function () {
assert.ok(infoWindow.getContent().innerHTML.indexOf(layout.getName()) >= 0);
assert.equal(logger.getErrors().length, 0);
}).finally(function () {
return map.destroy();
});
});
});
......@@ -333,6 +335,8 @@ describe('CustomMap', function () {
}).then(function () {
assert.notOk(infoWindow.getContent().innerHTML.indexOf(layout.getName()) >= 0);
assert.equal(logger.getErrors().length, 0);
}).finally(function () {
return map.destroy();
});
});
});
......@@ -542,8 +546,9 @@ describe('CustomMap', function () {
assert.equal(null, infoWindow);
return map.openInfoWindowForIdentifiedElement(ie, marker).then(function () {
infoWindow = map.getInfoWindowForIdentifiedElement(ie);
assert.ok(infoWindow);
}).finally(function(){
return map.destroy();
});
});
......@@ -895,6 +900,8 @@ describe('CustomMap', function () {
return map._openInfoWindowForIdentifiedElement(marker).then(function () {
assert.ok(map.getAliasInfoWindowById(alias.getId()));
});
}).finally(function () {
return map.destroy();
});
});
......@@ -917,6 +924,8 @@ describe('CustomMap', function () {
return map._openInfoWindowForIdentifiedElement(marker);
}).then(function () {
assert.ok(map.getReactionInfoWindowById(reaction.getId()));
}).finally(function () {
return map.destroy();
});
});
......@@ -941,6 +950,8 @@ describe('CustomMap', function () {
return mockObject._openInfoWindowForIdentifiedElement(pointMarker.getIdentifiedElement());
}).then(function () {
assert.ok(mockObject.getPointInfoWindowById(pointData.getId()));
}).finally(function () {
return mockObject.destroy();
});
});
});
......
......@@ -69,6 +69,8 @@ describe('MarkerSurfaceCollection', function () {
}).then(function (result) {
marker = result;
return marker.onClickHandler();
}).finally(function () {
return map.destroy();
});
});
......@@ -153,6 +155,8 @@ describe('MarkerSurfaceCollection', function () {
return collection.createSurfaceForDbOverlay(element, overlay);
}).then(function (surface) {
return surface.onClickHandler();
}).finally(function () {
return map.destroy();
});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment