X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=phantom-driver.js;h=9b98fdf14660386797ec806538506ee8b9078daf;hb=f914bed11fae7543d6019f4d6b86040c5a6fb7db;hp=009c634c61f0f9007a416cbe0cffea528613a76a;hpb=300c5ff08f0d397093c803bc86f5cd145ba9655d;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: