From: Wolfram Schneider Date: Tue, 4 Feb 2014 17:16:44 +0000 (+0000) Subject: jasmine puts the status message in a different class on failure X-Git-Tag: 1.0.0~1527 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=c159a9553666f85cbd7cee5d980a9d7836cd2435 jasmine puts the status message in a different class on failure --- 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 }; } })