From 22a10e6ade4aa0e32b042a3735598cbd40b160b5 Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Fri, 9 Nov 2018 14:43:54 +0000 Subject: [PATCH] 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 --- testing/xpcshell/head.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testing/xpcshell/head.js b/testing/xpcshell/head.js index f9e32807ce05..918673445120 100644 --- a/testing/xpcshell/head.js +++ b/testing/xpcshell/head.js @@ -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;