Bug 1505553 add record to xpcshell tests for use in extension tests, r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D11248

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Shane Caraveo 2018-11-09 14:43:54 +00:00
Родитель c327ca9308
Коммит 22a10e6ade
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -59,6 +59,12 @@ var Assert = new AssertCls(function(err, 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;