From be9f56107ceb5c302913afe9127749d637e12f9b Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 31 May 2016 16:15:57 -0700 Subject: [PATCH] [Timeline] Remove obsolete test cases --- .../test/controllers/TimelineControllerSpec.js | 17 ----------------- .../controllers/TimelineZoomControllerSpec.js | 6 ------ 2 files changed, 23 deletions(-) diff --git a/platform/features/timeline/test/controllers/TimelineControllerSpec.js b/platform/features/timeline/test/controllers/TimelineControllerSpec.js index aa88866ebc..7912dba149 100644 --- a/platform/features/timeline/test/controllers/TimelineControllerSpec.js +++ b/platform/features/timeline/test/controllers/TimelineControllerSpec.js @@ -214,23 +214,6 @@ define( }); - it("reports full scrollable width using zoom controller", function () { - var mockZoom = jasmine.createSpyObj('zoom', ['toPixels', 'duration']); - mockZoom.toPixels.andReturn(54321); - mockZoom.duration.andReturn(12345); - - // Initially populate - fireWatch('domainObject', mockDomainObject); - - expect(controller.width(mockZoom)).toEqual(54321); - // Verify interactions; we took zoom's duration for our start/end, - // and converted it to pixels. - // First, check that we used the start/end (from above) - expect(mockZoom.duration).toHaveBeenCalledWith(12321 - 42); - // Next, verify that the result was passed to toPixels - expect(mockZoom.toPixels).toHaveBeenCalledWith(12345); - }); - it("provides drag handles", function () { // TimelineDragPopulator et al are tested for these, // so just verify that handles are indeed exposed. diff --git a/platform/features/timeline/test/controllers/TimelineZoomControllerSpec.js b/platform/features/timeline/test/controllers/TimelineZoomControllerSpec.js index 47e79fefa8..bf87d17916 100644 --- a/platform/features/timeline/test/controllers/TimelineZoomControllerSpec.js +++ b/platform/features/timeline/test/controllers/TimelineZoomControllerSpec.js @@ -47,12 +47,6 @@ define( expect(controller.zoom()).toEqual(2000); }); - it("allows duration to be changed", function () { - var initial = controller.duration(); - controller.duration(initial * 3.33); - expect(controller.duration() > initial).toBeTruthy(); - }); - it("handles time-to-pixel conversions", function () { var zoomLevel = controller.zoom(); expect(controller.toPixels(zoomLevel)).toEqual(12321);