X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2FCanvasAssertions.js;h=9550912c6b3fc692bbcc327db4220156fd531930;hb=66c953562e2255253c3f11eaecad9eff41b11024;hp=62a3f495b0bc7445f4bab9883712644317ce1bc8;hpb=32c4d92b20add8400502e8d7b1337f2170fc987c;p=dygraphs.git diff --git a/auto_tests/tests/CanvasAssertions.js b/auto_tests/tests/CanvasAssertions.js index 62a3f49..9550912 100644 --- a/auto_tests/tests/CanvasAssertions.js +++ b/auto_tests/tests/CanvasAssertions.js @@ -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++;