mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 658738 - Don't leak test-console.html in browser_webconsole_bug_580001_closing_after_completion.js
This commit is contained in:
parent
870b2b8b77
commit
8f9726d50c
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user