Introduce a TWO_DAILY tick spacing
[dygraphs.git] / auto_tests / tests / axis_labels.js
index 25a8161..13de031 100644 (file)
@@ -229,7 +229,7 @@ AxisLabelsTestCase.prototype.testDateAxisLabelFormatter = function () {
   var graph = document.getElementById("graph");
   var g = new Dygraph(graph, data, opts);
 
-  assertEquals(["x2011/01/02"], Util.getXLabels());
+  assertEquals(["x2011/01/02","x2011/01/04","x2011/01/06","x2011/01/08"], Util.getXLabels());
   assertEquals(["y5","y10","y15"], Util.getYLabels());
 
   g.setSelection(0);
@@ -318,7 +318,7 @@ AxisLabelsTestCase.prototype.testDateValueFormatter = function () {
   var g = new Dygraph(graph, data, opts);
 
   // valueFormatters do not affect ticks.
-  assertEquals(["02 Jan"], Util.getXLabels());
+  assertEquals(["02 Jan","04 Jan","06 Jan","08 Jan"], Util.getXLabels());
   assertEquals(["5","10","15"], Util.getYLabels());
 
   // the valueFormatter options also affect the legend.