Bug 1397460 - Don't throw for a failure in cpows_child.js. r=billm
When ok() is passed false, we send a message to the parent, which will
cause the test to fail. Throwing in this helper in the child just
makes the test hang for a while.
MozReview-Commit-ID: 4gwBACPYfDO
--- a/dom/base/test/chrome/cpows_child.js
+++ b/dom/base/test/chrome/cpows_child.js
@@ -40,17 +40,16 @@ var Ci = Components.interfaces;
go();
})();
function ok(condition, message) {
dump('condition: ' + condition + ', ' + message + '\n');
if (!condition) {
sendAsyncMessage("cpows:fail", { message: message });
- throw 'failed check: ' + message;
}
}
var sync_obj;
var async_obj;
function make_object()
{