test(ivy): resolve root cause for core animation tests (#28062)

PR Close #28062
This commit is contained in:
Matias Niemelä 2019-01-10 14:16:29 -08:00 committed by Andrew Kushnir
parent 26a8c095d0
commit b0f3c20a4c
2 changed files with 205 additions and 199 deletions

View File

@ -853,8 +853,9 @@ const DEFAULT_COMPONENT_ID = '1';
})); }));
// nonAnimationRenderer => animationRenderer // nonAnimationRenderer => animationRenderer
fixmeIvy('unknown').it( fixmeIvy(
'should trigger a leave animation when the inner components host binding updates', 'FW-943 - elements are removed in the wrong renderer so far as host animation @triggers are concerned')
.it('should trigger a leave animation when the inner components host binding updates',
fakeAsync(() => { fakeAsync(() => {
@Component({ @Component({
selector: 'parent-cmp', selector: 'parent-cmp',
@ -870,9 +871,9 @@ const DEFAULT_COMPONENT_ID = '1';
selector: 'child-cmp', selector: 'child-cmp',
template: '...', template: '...',
animations: [trigger( animations: [trigger(
'host', 'host', [transition(
[transition( ':leave',
':leave', [style({opacity: 1}), animate(1000, style({opacity: 0}))])])] [style({opacity: 1}), animate(1000, style({opacity: 0}))])])]
}) })
class ChildCmp { class ChildCmp {
@HostBinding('@host') public hostAnimation = true; @HostBinding('@host') public hostAnimation = true;
@ -956,8 +957,9 @@ const DEFAULT_COMPONENT_ID = '1';
})); }));
// animationRenderer => animationRenderer // animationRenderer => animationRenderer
fixmeIvy('unknown').it( fixmeIvy(
'should trigger a leave animation when both the inner and outer components trigger on the same element', 'FW-943 - elements are removed in the wrong renderer so far as host animation @triggers are concerned')
.it('should trigger a leave animation when both the inner and outer components trigger on the same element',
fakeAsync(() => { fakeAsync(() => {
@Component({ @Component({
selector: 'parent-cmp', selector: 'parent-cmp',
@ -2915,10 +2917,10 @@ const DEFAULT_COMPONENT_ID = '1';
expect(cmp.log).toEqual(['parent-done', 'child-done']); expect(cmp.log).toEqual(['parent-done', 'child-done']);
})); }));
fixmeIvy('unknown').it( fixmeIvy(
'should fire callbacks and collect the correct the totalTime and element details for any queried sub animations', 'FW-944 - style/class bindings lose track of consts/vars when interpolation is present')
fakeAsync( .it('should fire callbacks and collect the correct the totalTime and element details for any queried sub animations',
() => { fakeAsync(() => {
@Component({ @Component({
selector: 'my-cmp', selector: 'my-cmp',
template: ` template: `

View File

@ -295,8 +295,9 @@ import {HostListener} from '../../src/metadata/directives';
expect(p6.element.classList.contains('b3')).toBeTruthy(); expect(p6.element.classList.contains('b3')).toBeTruthy();
}); });
fixmeIvy('unknown').it( fixmeIvy(
'should be able to query all active animations using :animating in a query', () => { 'FW-944 - style/class bindings lose track of consts/vars when interpolation is present')
.it('should be able to query all active animations using :animating in a query', () => {
@Component({ @Component({
selector: 'ani-cmp', selector: 'ani-cmp',
template: ` template: `
@ -802,7 +803,9 @@ import {HostListener} from '../../src/metadata/directives';
expect(player.element.style.height).toEqual('444px'); expect(player.element.style.height).toEqual('444px');
}); });
fixmeIvy('unknown').it('should find newly inserted items in the component via :enter', () => { fixmeIvy(
'FW-945 - Ivy createComponent calls CD while VE waits for CD to be explicitly called')
.it('should find newly inserted items in the component via :enter', () => {
@Component({ @Component({
selector: 'ani-cmp', selector: 'ani-cmp',
template: ` template: `
@ -2239,8 +2242,9 @@ import {HostListener} from '../../src/metadata/directives';
expect(p3.element.classList.contains('parent1')).toBeTruthy(); expect(p3.element.classList.contains('parent1')).toBeTruthy();
}); });
fixmeIvy('unknown').it( fixmeIvy(
'should emulate a leave animation on the nearest sub host elements when a parent is removed', 'FW-943 - elements are removed in the wrong renderer so far as host animation @triggers are concerned')
.it('should emulate a leave animation on the nearest sub host elements when a parent is removed',
fakeAsync(() => { fakeAsync(() => {
@Component({ @Component({
selector: 'ani-cmp', selector: 'ani-cmp',