Code comments and indentation fixes.
[dygraphs.git] / auto_tests / tests / CanvasAssertions.js
index 62a3f49..9550912 100644 (file)
@@ -185,6 +185,9 @@ CanvasAssertions.numLinesDrawn = function(proxy, color) {
   var num_lines = 0;
   for (var i = 0; i < proxy.calls__.length; i++) {
     var call = proxy.calls__[i];
+
+    // note: Don't simplify these two conditionals into one. The
+    // separation simplifies debugging tricky tests.
     if (call.name == "lineTo") {
       if (call.properties.strokeStyle == color) {
         num_lines++;