From 1818af99c84a6b0fcc27c24286d75f51a8f604a4 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 24 May 2017 14:56:01 +0200 Subject: [PATCH] unit test for opening data overlay --- frontend-js/src/test/js/map/CustomMap-test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend-js/src/test/js/map/CustomMap-test.js b/frontend-js/src/test/js/map/CustomMap-test.js index ccc0e6bf90..1eb008bb33 100644 --- a/frontend-js/src/test/js/map/CustomMap-test.js +++ b/frontend-js/src/test/js/map/CustomMap-test.js @@ -80,6 +80,15 @@ describe('CustomMap', function() { assert.equal(logger.getErrors().length, 0); }); + it("openLayout 2", function() { + var options = helper.createCustomMapOptions(); + var model = options.getProject().getModel(); + var layout = model.getLayouts()[0]; + var map = new CustomMap(options); + map.openLayout(layout); + assert.equal(logger.getErrors().length, 0); + }); + it("openLayout (string id)", function() { var options = helper.createCustomMapOptions(); var model = options.getProject().getModel(); -- GitLab