fix(ivy): setting up animation properties correctly (FW-643) (#27496)
Prior to this change, animation properties were defined as element attributes, which caused errors at runtime. Now all animation-related attributes are defined as element properties. Also as a part of this update, we start to account for bindings used in animations, which was previously missing. PR Close #27496
This commit is contained in:

committed by
Igor Minar

parent
4da739a970
commit
c71d7b5633
@ -120,8 +120,7 @@ import {el} from '../../testing/src/browser_util';
|
||||
// these tests are only mean't to be run within the DOM
|
||||
if (isNode) return;
|
||||
|
||||
fixmeIvy(
|
||||
`FW-643: Components with animations throw with "Failed to execute 'setAttribute' on 'Element'`)
|
||||
fixmeIvy(`FW-800: Animation listeners are not invoked`)
|
||||
.it('should flush and fire callbacks when the zone becomes stable', (async) => {
|
||||
@Component({
|
||||
selector: 'my-cmp',
|
||||
@ -198,7 +197,7 @@ import {el} from '../../testing/src/browser_util';
|
||||
});
|
||||
|
||||
fixmeIvy(
|
||||
`FW-643: Components with animations throw with "Failed to execute 'setAttribute' on 'Element'`)
|
||||
`FW-801: Components with animations throw with "Cannot read property 'hostElement' of undefined" error`)
|
||||
.it('should only queue up dom removals if the element itself contains a valid leave animation',
|
||||
() => {
|
||||
@Component({
|
||||
@ -283,8 +282,7 @@ import {el} from '../../testing/src/browser_util';
|
||||
});
|
||||
});
|
||||
|
||||
fixmeIvy(
|
||||
`FW-643: Components with animations throw with "Failed to execute 'setAttribute' on 'Element'`)
|
||||
fixmeIvy(`FW-802: Animation 'start' and 'end' hooks are invoked twice`)
|
||||
.it('should provide hooks at the start and end of change detection', () => {
|
||||
@Component({
|
||||
selector: 'my-cmp',
|
||||
|
@ -16,11 +16,10 @@ import {fixmeIvy} from '@angular/private/testing';
|
||||
describe('NoopAnimationsModule', () => {
|
||||
beforeEach(() => { TestBed.configureTestingModule({imports: [NoopAnimationsModule]}); });
|
||||
|
||||
it('should be removed once FW-643 is fixed', () => { expect(true).toBeTruthy(); });
|
||||
it('should be removed once FW-800 is fixed', () => { expect(true).toBeTruthy(); });
|
||||
|
||||
// TODO: remove the dummy test above ^ once the bug FW-643 has been fixed
|
||||
fixmeIvy(
|
||||
`FW-643: Components with animations throw with "Failed to execute 'setAttribute' on 'Element'`)
|
||||
// TODO: remove the dummy test above ^ once the bug FW-800 has been fixed
|
||||
fixmeIvy(`FW-800: Animation listeners are not invoked`)
|
||||
.it('should flush and fire callbacks when the zone becomes stable', (async) => {
|
||||
@Component({
|
||||
selector: 'my-cmp',
|
||||
@ -55,8 +54,7 @@ import {fixmeIvy} from '@angular/private/testing';
|
||||
});
|
||||
});
|
||||
|
||||
fixmeIvy(
|
||||
`FW-643: Components with animations throw with "Failed to execute 'setAttribute' on 'Element'`)
|
||||
fixmeIvy(`FW-800: Animation listeners are not invoked`)
|
||||
.it('should handle leave animation callbacks even if the element is destroyed in the process',
|
||||
(async) => {
|
||||
@Component({
|
||||
|
Reference in New Issue
Block a user