MCPcopy Create free account
hub / github.com/angular/components / createFocusTestComponent

Function createFocusTestComponent

src/cdk/tree/tree.spec.ts:1323–1343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1321 });
1322
1323 function createFocusTestComponent(): ComponentFixture<StaticNestedCdkTreeApp> {
1324 const fixture = TestBed.createComponent(StaticNestedCdkTreeApp);
1325
1326 component = fixture.componentInstance;
1327 dataSource = component.dataSource as FakeDataSource;
1328 tree = component.tree;
1329 treeElement = fixture.nativeElement.querySelector('cdk-tree');
1330 nodes = getNodes(treeElement);
1331
1332 dataSource.clear();
1333
1334 dataSource.data = [
1335 new TestData('cheese'),
1336 new TestData('pepperoni'),
1337 new TestData('anchovie'),
1338 ];
1339
1340 fixture.detectChanges();
1341 nodes = getNodes(treeElement);
1342 return fixture;
1343 }
1344 });
1345
1346 describe('tree role & attributes', () => {

Callers 1

tree.spec.tsFile · 0.85

Calls 2

getNodesFunction · 0.70
clearMethod · 0.65

Tested by

no test coverage detected