From 32c4d92b20add8400502e8d7b1337f2170fc987c Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sun, 15 Sep 2013 00:41:49 -0400 Subject: [PATCH] Make it easier to set breakpoints while testing CanvasAssertions.numLinesDrawn. --- auto_tests/tests/CanvasAssertions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auto_tests/tests/CanvasAssertions.js b/auto_tests/tests/CanvasAssertions.js index 929ba4f..62a3f49 100644 --- a/auto_tests/tests/CanvasAssertions.js +++ b/auto_tests/tests/CanvasAssertions.js @@ -185,8 +185,10 @@ CanvasAssertions.numLinesDrawn = function(proxy, color) { var num_lines = 0; for (var i = 0; i < proxy.calls__.length; i++) { var call = proxy.calls__[i]; - if (call.name == "lineTo" && call.properties.strokeStyle == color) { - num_lines++; + if (call.name == "lineTo") { + if (call.properties.strokeStyle == color) { + num_lines++; + } } } return num_lines; -- 2.7.4