test(language-service): Remove test cases from parsing-cases.ts (#34716)
This commit removes some test scenarios from `parsing-cases.ts` and colocate them with the test code instead. This makes the tests easier to read and understand. PR Close #34716
This commit is contained in:
@ -30,21 +30,17 @@ import * as ParsingCases from './parsing-cases';
|
||||
NgForCases.UnknownTrackBy,
|
||||
NgIfCases.ShowIf,
|
||||
ParsingCases.AsyncForUsingComponent,
|
||||
ParsingCases.AttributeBinding,
|
||||
ParsingCases.CaseIncompleteOpen,
|
||||
ParsingCases.CaseMissingClosing,
|
||||
ParsingCases.CaseUnknown,
|
||||
ParsingCases.EmptyInterpolation,
|
||||
ParsingCases.EventBinding,
|
||||
ParsingCases.NoValueAttribute,
|
||||
ParsingCases.NumberModel,
|
||||
ParsingCases.Pipes,
|
||||
ParsingCases.PropertyBinding,
|
||||
ParsingCases.References,
|
||||
ParsingCases.StringModel,
|
||||
ParsingCases.TemplateReference,
|
||||
ParsingCases.TestComponent,
|
||||
ParsingCases.TwoWayBinding,
|
||||
]
|
||||
})
|
||||
export class AppModule {
|
||||
|
@ -44,39 +44,6 @@ export class Pipes {
|
||||
export class NoValueAttribute {
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
template: '<h1 model="~{attribute-binding-model}test"></h1>',
|
||||
})
|
||||
export class AttributeBinding {
|
||||
test: string = 'test';
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<h1 [model]="~{property-binding-model}test"></h1>',
|
||||
})
|
||||
export class PropertyBinding {
|
||||
test: string = 'test';
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<h1 (model)="~{event-binding-model}modelChanged()"></h1>',
|
||||
})
|
||||
export class EventBinding {
|
||||
test: string = 'test';
|
||||
|
||||
modelChanged() {}
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
<h1 [(model)]="~{two-way-binding-model}test"></h1>
|
||||
<input ~{two-way-binding-input}></input>`,
|
||||
})
|
||||
export class TwoWayBinding {
|
||||
test: string = 'test';
|
||||
}
|
||||
|
||||
@Directive({
|
||||
selector: '[string-model]',
|
||||
})
|
||||
|
Reference in New Issue
Block a user