+ g.destroy(); // to balance context saves and destroys.
+ CanvasAssertions.assertBalancedSaveRestore(htx);
+});
+
+// See http://code.google.com/p/dygraphs/issues/detail?id=185
+it('testDrawSimpleRangeZeroToFifty', function() {
+ var opts = {
+ axes : {
+ x : {
+ drawGrid: false,
+ drawAxis: false,
+ },
+ y : {
+ drawGrid: false,
+ drawAxis: false,
+ }
+ },
+ valueRange: [0,50] }
+
+ var graph = document.getElementById("graph");
+ var g = new Dygraph(graph, ZERO_TO_FIFTY, opts);
+ var htx = g.hidden_ctx_;
+
+ var lines = CanvasAssertions.getLinesDrawn(htx, {
+ strokeStyle: "#008080",
+ lineWidth: 1
+ });
+ assert.equal(1, lines.length);
+ g.destroy(); // to balance context saves and destroys.