- this.graph = document.getElementById('graph');
- this.g = new Dygraph(this.graph, data, opts);
-};
-
-perAxisTestCase.prototype.tearDown = function() {
- Dygraph.getContext = perAxisTestCase._origGetContext;
-};
-
-perAxisTestCase.prototype.testDrawXAxis = function() {
- this.g.updateOptions({ drawXAxis : true });
- assertTrue(this.graph.getElementsByClassName('dygraph-axis-label-x').length > 0);
- assertTrue(this.graph.getElementsByClassName('dygraph-axis-label-y').length == 0);
-}
-
-perAxisTestCase.prototype.testDrawYAxis = function() {
- this.g.updateOptions({ drawYAxis : true });
- assertTrue(this.graph.getElementsByClassName('dygraph-axis-label-x').length ==0);
- assertTrue(this.graph.getElementsByClassName('dygraph-axis-label-y').length > 0);
-}
+ graph = document.getElementById('graph');
+ g = new Dygraph(graph, data, opts);
+});