[Time Conductor] Adding tests and fixing failing ones. #933

This commit is contained in:
Andrew Henry
2016-08-24 15:28:19 +01:00
committed by Henry
parent 4cf6126d35
commit c6eaa3d528
22 changed files with 1339 additions and 135 deletions

View File

@ -239,7 +239,7 @@ define(
setBasePanZoom(bounds);
requery();
}
self.updateStatus($scope.domainObject, follow);
self.setUnsynchedStatus($scope.domainObject, follow && self.isZoomed());
}
this.modeOptions = new PlotModeOptions([], subPlotFactory);
@ -370,9 +370,9 @@ define(
return this.pending;
};
PlotController.prototype.updateStatus = function (domainObject, follow) {
PlotController.prototype.setUnsynchedStatus = function (domainObject, status) {
if (domainObject.hasCapability('status')) {
domainObject.getCapability('status').set('timeconductor-unsynced', follow && this.isZoomed());
domainObject.getCapability('status').set('timeconductor-unsynced', status);
}
};