From ed85d0fa10ea1fb37c7bfe4833a0d75d965a5908 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 30 Apr 2018 11:44:51 +0200 Subject: [PATCH] removed private method call --- frontend-js/src/test/js/map/CustomMap-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend-js/src/test/js/map/CustomMap-test.js b/frontend-js/src/test/js/map/CustomMap-test.js index 64e7a66024..fdb018c809 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); -- GitLab