MCPcopy Create free account
hub / github.com/angular/angular / TestCmp

Class TestCmp

packages/forms/signals/test/web/focus.spec.ts:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16describe('FieldState focus behavior', () => {
17 it('should focus a native control', async () => {
18 @Component({
19 imports: [FormField],
20 template: `<input [formField]="f" />`,
21 })
22 class TestCmp {
23 readonly f = form(signal(''));
24 }
25
26 const fixture = act(() => TestBed.createComponent(TestCmp));
27 const input = fixture.nativeElement.firstChild;

Callers

nothing calls this directly

Calls 4

ComponentInterface · 0.90
signalFunction · 0.90
compatFormFunction · 0.90
formFunction · 0.85

Tested by

no test coverage detected