Only print PASS when failed test count == 0. Or is that === 0?
authorRobert Konigsberg <konigsberg@google.com>
Tue, 29 Jan 2013 21:01:16 +0000 (16:01 -0500)
committerRobert Konigsberg <konigsberg@google.com>
Tue, 29 Jan 2013 21:01:16 +0000 (16:01 -0500)
phantom-driver.js

index 6e4c18e..9b98fdf 100644 (file)
@@ -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: