зеркало из 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 = [];
|
||||
}).catch(reportCleanupError).then(() => complete = true);
|
||||
let tm = Cc["@mozilla.org/thread-manager;1"].getService();
|
||||
tm.spinEventLoopUntil(() => complete);
|
||||
_Services.tm.spinEventLoopUntil(() => complete);
|
||||
|
||||
// Restore idle service to avoid leaks.
|
||||
_fakeIdleService.deactivate();
|
||||
|
|
Загрузка…
Ссылка в новой задаче