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