test(language-service): test project cleanup (#33157)
This PR adds es2015 lib to the `tsconfig.json` of the test project so that `Promise` could be used. Note this only affects diagnostics in the IDE. The tsconfig in Language Service Mock Host is the actual config values used, and it already has es2015 lib. - Other minor cleanup: Rename imports in `main.ts`. - Add more cases to `parsing-cases.ts`, which are tested in later PRs PR Close #33157
This commit is contained in:

committed by
Miško Hevery

parent
4c0726db9c
commit
64aae3a9df
@ -91,9 +91,22 @@ export class NumberModel {
|
||||
@Output('outputAlias') modelChanged: EventEmitter<number> = new EventEmitter();
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'foo-component',
|
||||
template: `
|
||||
<div string-model ~{string-marker}="text"></div>
|
||||
<div number-model ~{number-marker}="value"></div>
|
||||
`,
|
||||
})
|
||||
export class FooComponent {
|
||||
text: string = 'some text';
|
||||
value: number = 42;
|
||||
}
|
||||
|
||||
interface Person {
|
||||
name: string;
|
||||
age: number;
|
||||
street: string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
@ -125,6 +138,17 @@ export class ForUsingComponent {
|
||||
people: Person[] = [];
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
<div *ngFor="let person of people | async">
|
||||
{{person.~{async-person-name}name}}
|
||||
</div>
|
||||
`,
|
||||
})
|
||||
export class AsyncForUsingComponent {
|
||||
people: Promise<Person[]> = Promise.resolve([]);
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
<div #div>
|
||||
|
Reference in New Issue
Block a user