Fix lint errors for i382. Also, ugh, clearly broken bit with mouseUpHandler.
[dygraphs.git] / phantom-driver.js
index 009c634..9b98fdf 100644 (file)
@@ -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: