本文整理匯總了TypeScript中@angular/core/testing.Log類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Log類的具體用法?TypeScript Log怎麽用?TypeScript Log使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Log類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: runNgZoneNoLog
runNgZoneNoLog(() => macroTask(_log.fn('run')));
示例2: scheduleMicroTask
scheduleMicroTask(() => {
ran = true;
_log.add('onMicrotaskEmpty(executeMicrotask)');
});
示例3: logOnMicrotaskEmpty
function logOnMicrotaskEmpty() {
ObservableWrapper.subscribe(_zone.onMicrotaskEmpty, _log.fn('onMicrotaskEmpty'));
}
示例4: macroTask
macroTask(() => {
expect(_log.result()).toEqual('run');
async.done()
});
示例5: logOnUnstable
function logOnUnstable() {
ObservableWrapper.subscribe(_zone.onUnstable, _log.fn('onUnstable'));
}
示例6:
_zone.run(() => _log.add('nested run'));
示例7: scheduleMicroTask
ObservableWrapper.subscribe(_zone.onUnstable, (_) => {
if (turnStart) throw 'Should not call this more than once';
_log.add('onUnstable');
scheduleMicroTask(() => {});
turnStart = true;
});