From c159a9553666f85cbd7cee5d980a9d7836cd2435 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 4 Feb 2014 17:16:44 +0000 Subject: [PATCH] jasmine puts the status message in a different class on failure --- test/phantom/evaluate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/phantom/evaluate.js b/test/phantom/evaluate.js index 8cc4c3e..0cf56f0 100644 --- a/test/phantom/evaluate.js +++ b/test/phantom/evaluate.js @@ -99,11 +99,13 @@ page.open(url, function (status) { if (!window || !window.$ || !window.mkws) { return false; } else { + var passing = window.$(".passingAlert").text() || window.$(".failingAlert").text(); + return { mkws: window.mkws, html: window.$("html").html(), duration: window.$(".duration").text(), - passing: window.$(".passingAlert").text() + passing: passing }; } }) -- 1.7.10.4