refactor(core): enable new animations dsl
Also deletes old tests that are not needed any more with the new view engine.
This commit is contained in:
@ -38,8 +38,14 @@ export {AnimationKeyframe} from './animation/animation_keyframe';
|
||||
export {Sanitizer, SecurityContext} from './security';
|
||||
export * from './codegen_private_exports';
|
||||
|
||||
// TODO (matsko|tbosch): comment-out the two lines below, and enable the 3rd line when the view
|
||||
// engine goes live!
|
||||
export {AnimationTransitionEvent} from './animation/animation_transition_event';
|
||||
export * from './animation/metadata';
|
||||
// export * from './animation_next/animation_metadata_wrapped';
|
||||
export * from './animation_next/animation_metadata_wrapped';
|
||||
|
||||
// For backwards compatibility.
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export type AnimationEntryMetadata = any;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export type AnimationStateTransitionMetadata = any;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1379,40 +1379,6 @@ function declareTests({useJit, viewEngine}: {useJit: boolean, viewEngine: boolea
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
// TODO(tbosch): delete these tests once view engine is the default as we handle
|
||||
// these errors via source maps!
|
||||
if (!viewEngine) {
|
||||
it('should specify a location of an error that happened during change detection (text)',
|
||||
() => {
|
||||
TestBed.configureTestingModule({declarations: [MyComp]});
|
||||
const template = '<div>{{a.b}}</div>';
|
||||
TestBed.overrideComponent(MyComp, {set: {template}});
|
||||
const fixture = TestBed.createComponent(MyComp);
|
||||
|
||||
expect(() => fixture.detectChanges()).toThrowError(/:0:5/);
|
||||
});
|
||||
|
||||
it('should specify a location of an error that happened during change detection (element property)',
|
||||
() => {
|
||||
TestBed.configureTestingModule({declarations: [MyComp]});
|
||||
const template = '<div [title]="a.b"></div>';
|
||||
TestBed.overrideComponent(MyComp, {set: {template}});
|
||||
const fixture = TestBed.createComponent(MyComp);
|
||||
|
||||
expect(() => fixture.detectChanges()).toThrowError(/:0:5/);
|
||||
});
|
||||
|
||||
it('should specify a location of an error that happened during change detection (directive property)',
|
||||
() => {
|
||||
TestBed.configureTestingModule({declarations: [MyComp, ChildComp, MyDir]});
|
||||
const template = '<child-cmp [dirProp]="a.b"></child-cmp>';
|
||||
TestBed.overrideComponent(MyComp, {set: {template}});
|
||||
const fixture = TestBed.createComponent(MyComp);
|
||||
|
||||
expect(() => fixture.detectChanges()).toThrowError(/:0:11/);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it('should support imperative views', () => {
|
||||
|
Reference in New Issue
Block a user