From ba6c1b88999be237cfaa2f2b9c697628820858e8 Mon Sep 17 00:00:00 2001 From: Jonathan Griffin Date: Thu, 3 Jan 2013 10:44:17 -0800 Subject: [PATCH] Bug 797913 - Make is() output use actual result, r=mdas --- testing/marionette/marionette-simpletest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/marionette/marionette-simpletest.js b/testing/marionette/marionette-simpletest.js index 65282b00c02e..33e53b5803fc 100644 --- a/testing/marionette/marionette-simpletest.js +++ b/testing/marionette/marionette-simpletest.js @@ -26,7 +26,7 @@ Marionette.prototype = { ok: function Marionette__ok(condition, name, passString, failString, diag) { if (typeof(diag) == "undefined") { - diag = this.repr(condition) + " was false, expected true"; + diag = this.repr(condition) + " was " + !!condition + ", expected true"; } let test = {'result': !!condition, 'name': name, 'diag': diag}; this.logResult(test,