Set focus to the MenuBar and run change detection.
()
| 95 | |
| 96 | /** Set focus to the MenuBar and run change detection. */ |
| 97 | function focusMenuBar() { |
| 98 | dispatchKeyboardEvent(document, 'keydown', TAB); |
| 99 | nativeMenuBar.focus(); |
| 100 | |
| 101 | detectChanges(); |
| 102 | } |
| 103 | |
| 104 | beforeEach(() => { |
| 105 | fixture = TestBed.createComponent(MultiMenuWithSubmenu); |
no test coverage detected
searching dependent graphs…