Bug 658738 - Don't leak test-console.html in browser_webconsole_bug_580001_closing_after_completion.js

This commit is contained in:
Dão Gottwald 2011-07-06 10:56:56 +02:00
parent 870b2b8b77
commit 8f9726d50c

View File

@ -61,7 +61,6 @@ function testClosingAfterCompletion() {
let errorWhileClosing = false;
function errorListener(evt) {
browser.removeEventListener("error", errorListener, false);
errorWhileClosing = true;
}
@ -74,6 +73,7 @@ function testClosingAfterCompletion() {
// We can't test for errors right away, because the error occures after a
// setTimeout(..., 0) in the WebConsole code.
executeSoon(function() {
browser.removeEventListener("error", errorListener, false);
is(errorWhileClosing, false, "no error while closing the WebConsole");
finishTest();
});