mirror of
https://github.com/nasa/openmct.git
synced 2025-03-02 04:34:17 +00:00
[Time Conductor] Update PlotController spec
...and add check to updateValues in PlotController, to reflect changes made to restore support for domain switching.
This commit is contained in:
parent
2ee53b17db
commit
bd8bbc6e8f
platform/features/plot
@ -149,12 +149,12 @@ define(
|
|||||||
if (handle) {
|
if (handle) {
|
||||||
setupModes(handle.getTelemetryObjects());
|
setupModes(handle.getTelemetryObjects());
|
||||||
setupAxes(handle.getMetadata());
|
setupAxes(handle.getMetadata());
|
||||||
}
|
|
||||||
getUpdater().update();
|
getUpdater().update();
|
||||||
self.modeOptions.getModeHandler().plotTelemetry(updater);
|
self.modeOptions.getModeHandler().plotTelemetry(updater);
|
||||||
self.limitTracker.update();
|
self.limitTracker.update();
|
||||||
self.update();
|
self.update();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Display new historical data as it becomes available
|
// Display new historical data as it becomes available
|
||||||
function addHistoricalData(domainObject, series) {
|
function addHistoricalData(domainObject, series) {
|
||||||
|
@ -169,8 +169,9 @@ define(
|
|||||||
mockDomainObject
|
mockDomainObject
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Make an object available
|
// Make an object available; invoke handler's callback
|
||||||
mockScope.$watch.mostRecentCall.args[1](mockDomainObject);
|
mockScope.$watch.mostRecentCall.args[1](mockDomainObject);
|
||||||
|
mockHandler.handle.mostRecentCall.args[1]();
|
||||||
|
|
||||||
expect(controller.getModeOptions().length).toEqual(1);
|
expect(controller.getModeOptions().length).toEqual(1);
|
||||||
|
|
||||||
@ -181,8 +182,9 @@ define(
|
|||||||
mockDomainObject
|
mockDomainObject
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Make an object available
|
// Make an object available; invoke handler's callback
|
||||||
mockScope.$watch.mostRecentCall.args[1](mockDomainObject);
|
mockScope.$watch.mostRecentCall.args[1](mockDomainObject);
|
||||||
|
mockHandler.handle.mostRecentCall.args[1]();
|
||||||
|
|
||||||
expect(controller.getModeOptions().length).toEqual(2);
|
expect(controller.getModeOptions().length).toEqual(2);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user