зеркало из https://github.com/mozilla/pjs.git
Bug 703122 - console.group is not cleared; r=msucan
This commit is contained in:
Родитель
0d6d4da3f5
Коммит
974f539cae
|
@ -5129,6 +5129,7 @@ JSTerm.prototype = {
|
|||
}
|
||||
|
||||
hud.HUDBox.lastTimestamp = 0;
|
||||
hud.groupDepth = 0;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,6 +43,14 @@ function onLoad(aEvent) {
|
|||
is(msg.length, 4, "four message nodes displayed");
|
||||
is(msg[3].style.marginLeft, GROUP_INDENT + "px", "correct group indent found");
|
||||
|
||||
// Test that clearing the console removes the indentation.
|
||||
hud.jsterm.clearOutput();
|
||||
content.console.log("cleared");
|
||||
findLogEntry("cleared");
|
||||
let msg = outputNode.querySelectorAll(".webconsole-msg-icon-container");
|
||||
is(msg.length, 1, "one message node displayed");
|
||||
is(msg[0].style.marginLeft, "0px", "correct group indent found");
|
||||
|
||||
finishTest();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче