Fix and regression test for fast proxy artifacts.
[dygraphs.git] / auto_tests / tests / callback.js
index 142fa88..d41d91e 100644 (file)
@@ -539,7 +539,7 @@ it('testFailedResponse', function() {
 
   DygraphOps.dispatchMouseOut_Point(g, 800, 800); // This call should not throw an exception.
 
-  assert.isFalse("exception thrown during mouseout", failed);
+  assert.isFalse(failed, "exception thrown during mouseout");
 });
 
 
@@ -696,9 +696,9 @@ it('testDrawHighlightPointCallback_idx', function() {
   };
   var testdata = [[1, 2], [2, 3], [3, NaN], [4, 2], [5, NaN], [6, 3]];
   var graph = document.getElementById("graph");
-  var g = new Dygraph(graph, testdata,
-      {
-          drawHighlightPointCallback : drawHighlightPointCallback
+  var g = new Dygraph(graph, testdata, {
+        drawHighlightPointCallback: drawHighlightPointCallback,
+        labels: ['X', 'Y']
       });
 
   assert.isNull(idxToCheck);