Revert "fix(animations): always fire inner trigger callbacks even if blocked by parent animations (#19753)"
This reverts commit bc4b4b5b55
.
This commit is contained in:
@ -45,26 +45,6 @@ export function main() {
|
||||
const p = innerPlayer !;
|
||||
expect(p.log).toEqual(['play']);
|
||||
});
|
||||
|
||||
it('should fire start/done callbacks manually when called directly', () => {
|
||||
const log: string[] = [];
|
||||
|
||||
const player = new WebAnimationsPlayer(element, [], {duration: 1000});
|
||||
player.onStart(() => log.push('started'));
|
||||
player.onDone(() => log.push('done'));
|
||||
|
||||
player.triggerCallback('start');
|
||||
expect(log).toEqual(['started']);
|
||||
|
||||
player.play();
|
||||
expect(log).toEqual(['started']);
|
||||
|
||||
player.triggerCallback('done');
|
||||
expect(log).toEqual(['started', 'done']);
|
||||
|
||||
player.finish();
|
||||
expect(log).toEqual(['started', 'done']);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user