| 390 | |
| 391 | it('should sync the disabled state if it changes right after a group is re-bound', () => { |
| 392 | @Component({ |
| 393 | template: ` |
| 394 | <form [formGroup]="form"> |
| 395 | <input formControlName="input" /> |
| 396 | </form> |
| 397 | `, |
| 398 | standalone: false, |
| 399 | changeDetection: ChangeDetectionStrategy.Eager, |
| 400 | }) |
| 401 | class App { |
| 402 | form: FormGroup; |
| 403 | |
| 404 | constructor(private _fb: FormBuilder) { |
| 405 | this.form = this._getForm(); |
| 406 | } |
| 407 | |
| 408 | private _getForm() { |
| 409 | return this._fb.group({'input': 'value'}); |
| 410 | } |
| 411 | |
| 412 | recreateAndDisable() { |
| 413 | this.form = this._getForm(); |
| 414 | this.form.disable(); |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | const fixture = initTest(App); |
| 419 | fixture.detectChanges(); |
nothing calls this directly
no test coverage detected