[Plot] Add test cases

Add test cases for plot line management, WTD-806.
This commit is contained in:
Victor Woeltjen
2015-04-20 14:31:29 -07:00
parent e21cbbe2c6
commit 4d288950fd
4 changed files with 105 additions and 7 deletions

View File

@ -14,14 +14,14 @@ define(
return end - start;
},
getDomainValue: function (index) {
return series.getDomainValue(index - start, domain);
return series.getDomainValue(index + start, domain);
},
getRangeValue: function (index) {
return series.getRangeValue(index - start, range);
return series.getRangeValue(index + start, range);
},
split: function () {
var mid = Math.floor((end + start) / 2);
return end > start ?
return ((end - start) > 1) ?
[
new PlotSeriesWindow(
series,
@ -34,7 +34,7 @@ define(
series,
domain,
range,
mid + 1,
mid,
end
)
] : [];