[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:
Victor Woeltjen
2015-10-27 15:52:11 -07:00
parent 2ee53b17db
commit bd8bbc6e8f
2 changed files with 8 additions and 6 deletions

View File

@ -149,11 +149,11 @@ define(
if (handle) { if (handle) {
setupModes(handle.getTelemetryObjects()); setupModes(handle.getTelemetryObjects());
setupAxes(handle.getMetadata()); setupAxes(handle.getMetadata());
getUpdater().update();
self.modeOptions.getModeHandler().plotTelemetry(updater);
self.limitTracker.update();
self.update();
} }
getUpdater().update();
self.modeOptions.getModeHandler().plotTelemetry(updater);
self.limitTracker.update();
self.update();
} }
// Display new historical data as it becomes available // Display new historical data as it becomes available

View File

@ -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);
}); });