mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
5c14ea4c04
commit
54cb6670fc
@ -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");
|
||||
|
||||
|
@ -72,7 +72,9 @@ exports.items = [
|
||||
return;
|
||||
}
|
||||
|
||||
let onceMessagesCleared = panel.hud.jsterm.once("messages-cleared");
|
||||
panel.hud.jsterm.clearOutput();
|
||||
return onceMessagesCleared;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user