Bug 1220011 - Yield on 'console close' command in test (fixes permafail with bug 1224294 applied); r=jwalker

--HG--
extra : commitid : 8bpM49oABkB
This commit is contained in:
Brian Grinstead 2015-12-03 10:02:37 -05:00
parent 5c14ea4c04
commit 54cb6670fc
2 changed files with 3 additions and 5 deletions

View File

@ -32,17 +32,13 @@ function* spawnTest() {
ok(msg, "output for pprint(window)");
let oncePromise = hud.jsterm.once("messages-cleared");
helpers.audit(options, [
yield helpers.audit(options, [
{
setup: "console clear",
exec: { output: "" }
}
]);
yield oncePromise;
let labels = hud.outputNode.querySelectorAll(".message");
is(labels.length, 0, "no output in console");

View File

@ -72,7 +72,9 @@ exports.items = [
return;
}
let onceMessagesCleared = panel.hud.jsterm.once("messages-cleared");
panel.hud.jsterm.clearOutput();
return onceMessagesCleared;
}
},
{