[Plot] Update plot controller spec

Update plot controller spec to reflect changes introduced
for WTD-751 and WTD-784.
This commit is contained in:
Victor Woeltjen
2015-02-02 16:17:17 -08:00
parent e6f1328d9d
commit 2ea4e7a47a
2 changed files with 72 additions and 27 deletions

View File

@ -85,7 +85,9 @@ define(
// Handle new telemetry data in this plot
function updateValues() {
setupModes(subscription.getTelemetryObjects());
if (subscription) {
setupModes(subscription.getTelemetryObjects());
}
if (updater) {
updater.update();
modeOptions.getModeHandler().plotTelemetry(updater);
@ -105,6 +107,7 @@ define(
true // Lossless
);
if (subscription) {
setupModes(subscription.getTelemetryObjects());
setupAxes(subscription.getMetadata());
recreateUpdater();
}
@ -183,6 +186,8 @@ define(
* Check if a request is pending (to show the wait spinner)
*/
isRequestPending: function () {
// Placeholder; this should reflect request state
// when requesting historical telemetry
return false;
}
};