test(language-service): Add method to override inline template (#36890)
This commit adds a method `overrideInlineTemplate` to the `MockTypescriptHost`. This allows us to override an inline template in a Component without changing the TypeScript parts. This methods works in a similar way as `MockTypescriptHost.override()`, which is used for overriding external template. PR Close #36890
This commit is contained in:

committed by
Alex Rickabaugh

parent
e037840b88
commit
b3713a112f
@ -10,33 +10,6 @@ import {Component, Directive, EventEmitter, Input, OnChanges, Output, SimpleChan
|
||||
|
||||
import {Hero} from './app.component';
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
<h1>
|
||||
Some <~{incomplete-open-lt}a~{incomplete-open-a} ~{incomplete-open-attr} text
|
||||
</h1>`,
|
||||
})
|
||||
export class CaseIncompleteOpen {
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<h1>Some <a> ~{missing-closing} text</h1>',
|
||||
})
|
||||
export class CaseMissingClosing {
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<h1>Some <unknown ~{unknown-element}> text</h1>',
|
||||
})
|
||||
export class CaseUnknown {
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<h1 h~{no-value-attribute}></h1>',
|
||||
})
|
||||
export class NoValueAttribute {
|
||||
}
|
||||
|
||||
@Directive({
|
||||
selector: '[string-model]',
|
||||
})
|
||||
|
Reference in New Issue
Block a user