()
| 74 | let fileMenuNativeItems: HTMLButtonElement[]; |
| 75 | |
| 76 | function grabElementsForTesting() { |
| 77 | nativeMenuBar = fixture.componentInstance.nativeMenuBar.nativeElement; |
| 78 | |
| 79 | nativeMenus = fixture.componentInstance.nativeMenus.map(e => e.nativeElement); |
| 80 | |
| 81 | menuBarNativeItems = fixture.componentInstance.nativeItems |
| 82 | .map(e => e.nativeElement) |
| 83 | .slice(0, 2); // menu bar has the first 2 menu items |
| 84 | |
| 85 | fileMenuNativeItems = fixture.componentInstance.nativeItems |
| 86 | .map(e => e.nativeElement) |
| 87 | .slice(2, 5); // file menu has the next 3 menu items |
| 88 | } |
| 89 | |
| 90 | /** Run change detection and extract then set the rendered elements. */ |
| 91 | function detectChanges() { |
no test coverage detected
searching dependent graphs…