From: Robert Konigsberg Date: Tue, 29 Jan 2013 21:01:16 +0000 (-0500) Subject: Only print PASS when failed test count == 0. Or is that === 0? X-Git-Tag: v1.0.0~110^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5776905de6e0615f5afe24ae693628f8f504859b;p=dygraphs.git Only print PASS when failed test count == 0. Or is that === 0? --- diff --git a/phantom-driver.js b/phantom-driver.js index 6e4c18e..9b98fdf 100644 --- a/phantom-driver.js +++ b/phantom-driver.js @@ -179,8 +179,9 @@ RunAllAutoTests(function(num_failing, num_passing) { if (num_failing !== 0) { console.log('FAIL'); phantom.exit(); + } else { + console.log('PASS'); } - console.log('PASS'); phantom.exit(); // This is not yet reliable enough to be useful: