Improve detection of failures, part of MKWS-282
[mkws-moved-to-github.git] / test / phantom / run-jasmine.js
index 396417b..ef0577a 100644 (file)
@@ -136,7 +136,7 @@ page.open(url, function (status) {
                 html: $("html").html(),
                 duration: $(".duration").text(),
                 error_msg: error_msg,
-                failed: list.length,
+                failed: (list.length > 0 || !passing),
                 passing: passing
             };
         })