Bug 1223635 - Coerce this to a boolean. r=billm
authorBlake Kaplan <mrbkap@gmail.com>
Wed, 11 Nov 2015 13:52:29 -0800
changeset 272147 18508057aa200f2e9ace2ba29ffd2bb6efbeea5a
parent 272146 f91567e794d6a0fb7e5b9142a70b8cf82657766a
child 272148 52d43b0a27eb82f39b3320c47cc4cb18a951e4b3
push id67888
push usermrbkap@mozilla.com
push dateWed, 11 Nov 2015 21:53:46 +0000
treeherdermozilla-inbound@18508057aa20 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs1223635
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1223635 - Coerce this to a boolean. r=billm
testing/mochitest/BrowserTestUtils/content/content-task.js
--- a/testing/mochitest/BrowserTestUtils/content/content-task.js
+++ b/testing/mochitest/BrowserTestUtils/content/content-task.js
@@ -19,17 +19,17 @@ addMessageListener("content-task:spawn",
       frames.push(frame.filename + ":" + frame.name + ":" + frame.lineNumber);
     }
     return frames.join("\n");
   }
 
   function ok(condition, name, diag) {
     let stack = getStack(Components.stack.caller);
     sendAsyncMessage("content-task:test-result", {
-      id, condition, name, diag, stack
+      id, condition: !!condition, name, diag, stack
     });
   }
 
   function is(a, b, name) {
     ok(Object.is(a, b), name, "Got " + a + ", expected " + b);
   }
 
   function isnot(a, b, name) {