X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2FCanvasAssertions.js;h=9550912c6b3fc692bbcc327db4220156fd531930;hb=c3b3ea32cbd608f15df6cd61aaa848e28ca0adb2;hp=62a3f495b0bc7445f4bab9883712644317ce1bc8;hpb=7e64db422edd4fb5ce6b5abfb668d23ec9d001b8;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++;