From 9fecd72f44179f1eb5e42f7accf3ebfb44d0c74e Mon Sep 17 00:00:00 2001 From: Chuck Jazdzewski Date: Fri, 6 Oct 2017 18:15:26 -0700 Subject: [PATCH] Revert "test(animations): test to see if triggers get cancelled on removal (#19532)" This reverts commit f12e15e682acc0e9bb0722e3455e68acc6687ac6. --- .../animation/animation_integration_spec.ts | 64 ------------------- 1 file changed, 64 deletions(-) diff --git a/packages/core/test/animation/animation_integration_spec.ts b/packages/core/test/animation/animation_integration_spec.ts index 51932332f9..bfc08b651d 100644 --- a/packages/core/test/animation/animation_integration_spec.ts +++ b/packages/core/test/animation/animation_integration_spec.ts @@ -1318,70 +1318,6 @@ export function main() { expect(count).toEqual(2); }); - it('should cancel all animations on the element when a removal animation is set', - fakeAsync(() => { - const sharedAnimation = [style({opacity: 0}), animate('1s', style({opacity: 1}))]; - - @Component({ - selector: 'ani-cmp', - template: ` -
- `, - animations: [ - trigger( - 'one', - [ - transition('* => go', sharedAnimation), - transition( - ':leave', [style({opacity: 1}), animate('1s', style({opacity: 0}))]), - ]), - trigger( - 'two', - [ - transition('* => go', sharedAnimation), - ]), - trigger( - 'three', - [ - transition('* => go', sharedAnimation), - ]), - ] - }) - class Cmp { - public exp0: any; - public exp1: any; - public exp2: any; - public exp3: any; - } - - TestBed.configureTestingModule({declarations: [Cmp]}); - - const fixture = TestBed.createComponent(Cmp); - const cmp = fixture.componentInstance; - - cmp.exp0 = true; - cmp.exp1 = 'go'; - cmp.exp2 = 'go'; - cmp.exp3 = 'go'; - fixture.detectChanges(); - flushMicrotasks(); - - const players = getLog(); - resetLog(); - - expect(players.length).toEqual(3); - - let count = 0; - players.forEach(player => { player.onDone(() => count++); }); - - expect(count).toEqual(0); - cmp.exp0 = false; - fixture.detectChanges(); - flushMicrotasks(); - - expect(count).toEqual(3); - })); - it('should destroy inner animations when a parent node is set for removal', () => { @Component({ selector: 'ani-cmp',