зеркало из https://github.com/mozilla/gecko-dev.git
Bug 658738 - Don't leak test-console.html in browser_webconsole_bug_580001_closing_after_completion.js
This commit is contained in:
Родитель
870b2b8b77
Коммит
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();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче