@ -208,8 +208,8 @@ function commonTests() {
|
||||
macroTask(() => {
|
||||
expect(_log.result()).toEqual('run; onTurnDone; onEventDone');
|
||||
async.done();
|
||||
}, 80);
|
||||
}));
|
||||
}, 150);
|
||||
}), 200);
|
||||
|
||||
it('should run async tasks scheduled inside onEventDone outside Angular zone',
|
||||
inject([AsyncTestCompleter], (async) => {
|
||||
@ -230,7 +230,7 @@ function commonTests() {
|
||||
TimerWrapper.setTimeout(() => {
|
||||
expect(_log.result()).toEqual('run; onTurnDone; onEventDone; asyncTask');
|
||||
async.done();
|
||||
}, 10);
|
||||
}, 20);
|
||||
});
|
||||
}));
|
||||
|
||||
@ -402,8 +402,8 @@ function commonTests() {
|
||||
// Second VM Turn => microtask enqueued from onTurnDone
|
||||
'onTurnStart; executedMicrotask; onTurnDone(begin); onTurnDone(end)');
|
||||
async.done();
|
||||
}, 80);
|
||||
}));
|
||||
}, 150);
|
||||
}), 200);
|
||||
|
||||
it('should call onTurnStart and onTurnDone for a scheduleMicrotask in onTurnDone triggered by ' +
|
||||
'a scheduleMicrotask in run',
|
||||
@ -437,8 +437,8 @@ function commonTests() {
|
||||
// Second VM Turn => the microtask enqueued from onTurnDone
|
||||
'onTurnStart; onTurnDone(executeMicrotask); onTurnDone(begin); onTurnDone(end)');
|
||||
async.done();
|
||||
}, 80);
|
||||
}));
|
||||
}, 150);
|
||||
}), 200);
|
||||
|
||||
it('should execute promises scheduled in onTurnStart before promises scheduled in run',
|
||||
inject([AsyncTestCompleter], (async) => {
|
||||
@ -492,8 +492,8 @@ function commonTests() {
|
||||
// Second VM turn: execute the microtask from onTurnEnd
|
||||
'onTurnStart(begin); onTurnStart(end); onTurnDone(executePromise); onTurnDone(begin); onTurnDone(end)');
|
||||
async.done();
|
||||
}, 80);
|
||||
}));
|
||||
}, 150);
|
||||
}), 200);
|
||||
|
||||
it('should call onTurnStart and onTurnDone before and after each turn, respectively',
|
||||
inject([AsyncTestCompleter], (async) => {
|
||||
@ -513,7 +513,7 @@ function commonTests() {
|
||||
macroTask(() => { _zone.run(() => { completerA.resolve(null); }); }, 20);
|
||||
|
||||
|
||||
macroTask(() => { _zone.run(() => { completerB.resolve(null); }); }, 100);
|
||||
macroTask(() => { _zone.run(() => { completerB.resolve(null); }); }, 120);
|
||||
|
||||
macroTask(() => {
|
||||
expect(_log.result())
|
||||
@ -545,8 +545,8 @@ function commonTests() {
|
||||
expect(_log.result())
|
||||
.toEqual('onTurnStart; run start; run end; async1; async2; onTurnDone');
|
||||
async.done();
|
||||
}, 80);
|
||||
}));
|
||||
}, 150);
|
||||
}), 200);
|
||||
|
||||
it('should call onTurnStart and onTurnDone for promises created outside of run body',
|
||||
inject([AsyncTestCompleter], (async) => {
|
||||
@ -567,8 +567,8 @@ function commonTests() {
|
||||
expect(_log.result())
|
||||
.toEqual('onTurnStart; zone run; onTurnDone; onTurnStart; promise then; onTurnDone');
|
||||
async.done();
|
||||
}, 80);
|
||||
}));
|
||||
}, 150);
|
||||
}), 200);
|
||||
});
|
||||
|
||||
describe('exceptions', () => {
|
||||
|
Reference in New Issue
Block a user