X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fsimple_drawing.js;h=8f3b0c573aa1a1e4a847cc59b8f1a3729ea2a268;hb=86a3e64f8f73d854b3b4ac35f52b54bfda3056a4;hp=0ea13a4b66a0db13691b1cc7bef25d9504cde287;hpb=65728bc9155b54d20889d255f6d3d8766af8c144;p=dygraphs.git diff --git a/auto_tests/tests/simple_drawing.js b/auto_tests/tests/simple_drawing.js index 0ea13a4..8f3b0c5 100644 --- a/auto_tests/tests/simple_drawing.js +++ b/auto_tests/tests/simple_drawing.js @@ -55,7 +55,16 @@ SimpleDrawingTestCase.prototype.testDrawSimpleRangePlusOne = function() { strokeStyle: "#008080", lineWidth: 1 }); -} + CanvasAssertions.assertBalancedSaveRestore(htx); +}; + +SimpleDrawingTestCase.prototype.testDrawWithAxis = function() { + var graph = document.getElementById("graph"); + var g = new Dygraph(graph, ZERO_TO_FIFTY); + + var htx = g.hidden_ctx_; + CanvasAssertions.assertBalancedSaveRestore(htx); +}; /** * Tests that it is drawing dashes, and it remember the dash history between @@ -79,4 +88,5 @@ SimpleDrawingTestCase.prototype.testDrawSimpleDash = function() { htx = g.hidden_ctx_; assertEquals(29, CanvasAssertions.numLinesDrawn(htx, "#ff0000")); + CanvasAssertions.assertBalancedSaveRestore(htx); };