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
This commit is contained in:
Alexandre Poirot 2020-10-21 09:48:22 +00:00
Родитель 7c1391669a
Коммит 17579d8c04
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -96,7 +96,7 @@ async function initBrowserToolboxTask({
);
}
importFunctions({
await importFunctions({
info: msg => dump(msg + "\n"),
is: (a, b, description) => {
let msg =