X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=phantom-driver.js;h=9b98fdf14660386797ec806538506ee8b9078daf;hb=e4cee287656a7dc72c1883748c493b0db682ef16;hp=009c634c61f0f9007a416cbe0cffea528613a76a;hpb=bff6800b2885c168f3c276b50fa73b7679824067;p=dygraphs.git diff --git a/phantom-driver.js b/phantom-driver.js index 009c634..9b98fdf 100644 --- a/phantom-driver.js +++ b/phantom-driver.js @@ -80,7 +80,7 @@ page.open(url, function(status) { for (var test in caseResults) { if (caseResults[test] !== true) { num_failing++; - failures.push(testCase + '.' + test + ' failed'); + failures.push(testCase + '.' + test); } else { // console.log(testCase + '.' + test + ' passed'); num_passing++; @@ -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: