()
| 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', () => { |
no test coverage detected