From 721557b8143330eda6f396b027efb7906b773e27 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 26 Feb 2016 16:29:06 -0800 Subject: [PATCH] [Templates] Exercise selection method ...add to TimelineSwimlanePopulator to reflect changes to time at which selection object may become available as a consequence to changes in the way templates are normally loaded. #673 --- .../swimlane/TimelineSwimlanePopulatorSpec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/features/timeline/test/controllers/swimlane/TimelineSwimlanePopulatorSpec.js b/platform/features/timeline/test/controllers/swimlane/TimelineSwimlanePopulatorSpec.js index 02b2010def..895ae34a79 100644 --- a/platform/features/timeline/test/controllers/swimlane/TimelineSwimlanePopulatorSpec.js +++ b/platform/features/timeline/test/controllers/swimlane/TimelineSwimlanePopulatorSpec.js @@ -150,6 +150,15 @@ define( expect(mockSelection.proxy).toHaveBeenCalled(); }); + it("allows selection object to be changed", function () { + var mockNewSelectionObject = jasmine.createSpyObj( + 'new-selection', + ['get', 'select', 'proxy'] + ); + populator.selection(mockNewSelectionObject); + expect(mockNewSelectionObject.proxy) + .toHaveBeenCalled(); + }); }); }