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:
Florian Quèze 2018-02-28 18:51:35 +01:00
Родитель 8922be9c58
Коммит 0381f3a8ed
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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();