Bug 1505553 add record to xpcshell tests for use in extension tests, r=Standard8
authorShane Caraveo <scaraveo@mozilla.com>
Fri, 09 Nov 2018 14:43:54 +0000
changeset 445427 00c7004a24da028d81b4d3bc928c2233c00d5d9c
parent 445426 8c6db36f84984e24b4568a58f48467d0c7fa7cfe
child 445428 0f9d5e93e0ba6fb9bde4dfb9befd6b941d2007f6
push id35015
push userdluca@mozilla.com
push dateFri, 09 Nov 2018 17:45:20 +0000
treeherdermozilla-central@2f1158e5e0ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs1505553
milestone65.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 1505553 add record to xpcshell tests for use in extension tests, r=Standard8 Differential Revision: https://phabricator.services.mozilla.com/D11248
testing/xpcshell/head.js
--- a/testing/xpcshell/head.js
+++ b/testing/xpcshell/head.js
@@ -54,16 +54,22 @@ var AssertCls = ChromeUtils.import("reso
 var Assert = new AssertCls(function(err, message, stack) {
   if (err) {
     do_report_result(false, err.message, err.stack);
   } else {
     do_report_result(true, message, stack);
   }
 }, true);
 
+// Bug 1506134 for followup.  Some xpcshell tests use ContentTask.jsm, which
+// expects browser-test.js to have set a testScope that includes record.
+function record(condition, name, diag, stack) {
+  do_report_result(condition, name, stack);
+}
+
 var _add_params = function(params) {
   if (typeof _XPCSHELL_PROCESS != "undefined") {
     params.xpcshell_process = _XPCSHELL_PROCESS;
   }
 };
 
 var _dumpLog = function(raw_msg) {
   dump("\n" + JSON.stringify(raw_msg) + "\n");