зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1433175 - Fix xpcshell tests, 'Cc' isn't defined in that scope, so use _Services.tm directly, r=Mossop, a=Aryx on CLOSED TREE
This commit is contained in:
Родитель
8922be9c58
Коммит
0381f3a8ed
|
@ -597,8 +597,7 @@ function _execute_test() {
|
||||||
}
|
}
|
||||||
_cleanupFunctions = [];
|
_cleanupFunctions = [];
|
||||||
}).catch(reportCleanupError).then(() => complete = true);
|
}).catch(reportCleanupError).then(() => complete = true);
|
||||||
let tm = Cc["@mozilla.org/thread-manager;1"].getService();
|
_Services.tm.spinEventLoopUntil(() => complete);
|
||||||
tm.spinEventLoopUntil(() => complete);
|
|
||||||
|
|
||||||
// Restore idle service to avoid leaks.
|
// Restore idle service to avoid leaks.
|
||||||
_fakeIdleService.deactivate();
|
_fakeIdleService.deactivate();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче