*/
var CustomBarsTestCase = TestCase("custom-bars");
-var _origFunc = Dygraph.getContext;
+CustomBarsTestCase._origFunc = Dygraph.getContext;
CustomBarsTestCase.prototype.setUp = function() {
document.body.innerHTML = "<div id='graph'></div>";
Dygraph.getContext = function(canvas) {
- return new Proxy(_origFunc(canvas));
+ return new Proxy(CustomBarsTestCase._origFunc(canvas));
}
};
CustomBarsTestCase.prototype.tearDown = function() {
- Dygraph.getContext = _origFunc;
+ Dygraph.getContext = CustomBarsTestCase._origFunc;
};
// This test used to reliably produce an infinite loop.
document.body.innerHTML = "<div id='graph'></div>";
};
-var _origFunc = Dygraph.getContext;
+errorBarsTestCase._origFunc = Dygraph.getContext;
errorBarsTestCase.prototype.setUp = function() {
document.body.innerHTML = "<div id='graph'></div>";
Dygraph.getContext = function(canvas) {
- return new Proxy(_origFunc(canvas));
+ return new Proxy(errorBarsTestCase._origFunc(canvas));
}
};
errorBarsTestCase.prototype.tearDown = function() {
- Dygraph.getContext = _origFunc;
+ Dygraph.getContext = errorBarsTestCase._origFunc;
};
errorBarsTestCase.prototype.testErrorBarsDrawn = function() {
var MissingPointsTestCase = TestCase("missing-points");
-var _origFunc = Dygraph.getContext;
+MissingPointsTestCase._origFunc = Dygraph.getContext;
MissingPointsTestCase.prototype.setUp = function() {
document.body.innerHTML = "<div id='graph'></div>";
Dygraph.getContext = function(canvas) {
- return new Proxy(_origFunc(canvas));
+ return new Proxy(MissingPointsTestCase._origFunc(canvas));
}
};
MissingPointsTestCase.prototype.tearDown = function() {
- Dygraph.getContext = _origFunc;
+ Dygraph.getContext = MissingPointsTestCase._origFunc;
};
MissingPointsTestCase.prototype.testSeparatedPointsDontDraw = function() {
var line = lines[idx];
console.log(line[0].args, line[1].args, line[0].properties.strokeStyle);
}
-*/
\ No newline at end of file
+*/
var SimpleDrawingTestCase = TestCase("simple-drawing");
-var _origFunc = Dygraph.getContext;
+SimpleDrawingTestCase._origFunc = Dygraph.getContext;
SimpleDrawingTestCase.prototype.setUp = function() {
document.body.innerHTML = "<div id='graph'></div>";
Dygraph.getContext = function(canvas) {
- return new Proxy(_origFunc(canvas));
+ return new Proxy(SimpleDrawingTestCase._origFunc(canvas));
}
};
SimpleDrawingTestCase.prototype.tearDown = function() {
- Dygraph.getContext = _origFunc;
+ Dygraph.getContext = SimpleDrawingTestCase._origFunc;
};
SimpleDrawingTestCase.prototype.testDrawSimpleRangePlusOne = function() {
var ToDomCoordsTestCase = TestCase("to-dom-coords");
-var _origFunc = Dygraph.getContext;
+ToDomCoordsTestCase._origFunc = Dygraph.getContext;
ToDomCoordsTestCase.prototype.setUp = function() {
document.body.innerHTML = "<div id='graph'></div>";
Dygraph.getContext = function(canvas) {
- return new Proxy(_origFunc(canvas));
+ return new Proxy(ToDomCoordsTestCase._origFunc(canvas));
}
};
ToDomCoordsTestCase.prototype.tearDown = function() {
- Dygraph.getContext = _origFunc;
+ Dygraph.getContext = ToDomCoordsTestCase._origFunc;
};
// Checks that toDomCoords and toDataCoords are inverses of one another.