Bug 1173503 - Make do_check_true output include the passed message in xpcshell unit tests r=ted
authorMichael Layzell <michael@thelayzells.com>
Fri, 19 Jun 2015 14:27:37 -0700
changeset 249848 39ffdb70df06e9e17f28fd9198d251389b1b4363
parent 249847 513d62fe75c9d136042f9ca85b017d3aad3cdc37
child 249849 a92d4fcd8afac9a793cbe417de01d9952af56a57
push id28940
push usercbook@mozilla.com
push dateMon, 22 Jun 2015 12:03:34 +0000
treeherdermozilla-central@be81b8d6fae9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1173503
milestone41.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 1173503 - Make do_check_true output include the passed message in xpcshell unit tests r=ted
testing/xpcshell/head.js
--- a/testing/xpcshell/head.js
+++ b/testing/xpcshell/head.js
@@ -850,17 +850,17 @@ function do_check_eq(left, right, stack)
 function todo_check_eq(left, right, stack) {
   if (!stack)
       stack = Components.stack.caller;
 
   _do_check_eq(left, right, stack, true);
 }
 
 function do_check_true(condition, stack) {
-  Assert.ok(condition);
+  Assert.ok(condition, stack);
 }
 
 function todo_check_true(condition, stack) {
   if (!stack)
     stack = Components.stack.caller;
 
   todo_check_eq(condition, true, stack);
 }