| 94 | let nativeTriggers: HTMLButtonElement[]; |
| 95 | |
| 96 | const grabElementsForTesting = () => { |
| 97 | menus = fixture.componentInstance.menus.toArray(); |
| 98 | nativeMenus = fixture.componentInstance.nativeMenus.map(m => m.nativeElement); |
| 99 | |
| 100 | menuItems = fixture.componentInstance.menuItems.toArray(); |
| 101 | triggers = fixture.componentInstance.triggers.toArray(); |
| 102 | nativeTriggers = fixture.componentInstance.nativeTriggers.map(t => t.nativeElement); |
| 103 | }; |
| 104 | |
| 105 | /** run change detection and, extract and set the rendered elements */ |
| 106 | const detectChanges = () => { |