From 17579d8c04d4fe1a03be7ea28b804084fa1161cc Mon Sep 17 00:00:00 2001 From: Alexandre Poirot Date: Wed, 21 Oct 2020 09:48:22 +0000 Subject: [PATCH] Bug 1267443 - [devtools] Wait for test function to be imported into browser toolbox. r=jdescottes We weren't waiting for assertion function to be evaluated in the console. This can later lead to ok/is functions being undefined when calling Toolbox.spawn. Differential Revision: https://phabricator.services.mozilla.com/D94279 --- .../framework/browser-toolbox/test/helpers-browser-toolbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/client/framework/browser-toolbox/test/helpers-browser-toolbox.js b/devtools/client/framework/browser-toolbox/test/helpers-browser-toolbox.js index 63b18685b60b..0696f1fffc2d 100644 --- a/devtools/client/framework/browser-toolbox/test/helpers-browser-toolbox.js +++ b/devtools/client/framework/browser-toolbox/test/helpers-browser-toolbox.js @@ -96,7 +96,7 @@ async function initBrowserToolboxTask({ ); } - importFunctions({ + await importFunctions({ info: msg => dump(msg + "\n"), is: (a, b, description) => { let msg =