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

Class TestCmp

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

Source from the content-addressed store, hash-verified

24describe('FieldState focus behavior', () => {
25 it('should focus a native control', async () => {
26 @Component({
27 imports: [FormField],
28 template: `<input [formField]="f" />`,
29 })
30 class TestCmp {
31 readonly f = form(signal(''));
32 }
33
34 const fixture = await act(() => TestBed.createComponent(TestCmp));
35 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