mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 23:12:23 +00:00
[Timeline] Remove obsolete test cases
This commit is contained in:
parent
787f3815df
commit
be9f56107c
@ -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 () {
|
it("provides drag handles", function () {
|
||||||
// TimelineDragPopulator et al are tested for these,
|
// TimelineDragPopulator et al are tested for these,
|
||||||
// so just verify that handles are indeed exposed.
|
// so just verify that handles are indeed exposed.
|
||||||
|
@ -47,12 +47,6 @@ define(
|
|||||||
expect(controller.zoom()).toEqual(2000);
|
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 () {
|
it("handles time-to-pixel conversions", function () {
|
||||||
var zoomLevel = controller.zoom();
|
var zoomLevel = controller.zoom();
|
||||||
expect(controller.toPixels(zoomLevel)).toEqual(12321);
|
expect(controller.toPixels(zoomLevel)).toEqual(12321);
|
||||||
|
Loading…
Reference in New Issue
Block a user