diff --git a/frontend-js/src/test/js/map/CustomMap-test.js b/frontend-js/src/test/js/map/CustomMap-test.js index 64e7a66024609508433c94154f04ccd089bac658..fdb018c8099474b991d57e3ebce09a3ba5fe3e2c 100644 --- a/frontend-js/src/test/js/map/CustomMap-test.js +++ b/frontend-js/src/test/js/map/CustomMap-test.js @@ -116,7 +116,7 @@ describe('CustomMap', function () { }); it("with non background overlay", function () { - var project =helper.createProject(); + var project = helper.createProject(); var layout = helper.createOverlay(); layout.setInitialized(true); layout.setInputDataAvailable(true); @@ -286,7 +286,6 @@ describe('CustomMap', function () { }); - describe("renderOverlayCollection", function () { it("for alias", function () { var map = helper.createCustomMap(); @@ -484,11 +483,12 @@ describe('CustomMap', function () { map.getModel().addReaction(reaction); var ie = helper.createIdentifiedElement(reaction); + var marker = map.getMapCanvas().createMarker({icon:"empty.png", position:new Point(0,0)}); var infoWindow = map.getInfoWindowForIdentifiedElement(ie); assert.equal(null, infoWindow); - return map._openInfoWindowForReaction(reaction).then(function () { + return map.openInfoWindowForIdentifiedElement(ie, marker).then(function () { infoWindow = map.getInfoWindowForIdentifiedElement(ie); assert.ok(infoWindow); @@ -531,7 +531,7 @@ describe('CustomMap', function () { var data = { stop: null, - point: new Point(184.79,365.76) + point: new Point(184.79, 365.76) }; map.setZoom(4); @@ -557,7 +557,7 @@ describe('CustomMap', function () { var data = { stop: null, - point: new Point(457.51,356.84) + point: new Point(457.51, 356.84) }; map.setZoom(4);