update a few menu.popup() calls to use the new API
This commit is contained in:
parent
35e90f742b
commit
708f39a1a5
3 changed files with 9 additions and 4 deletions
|
@ -334,12 +334,12 @@ describe('Menu module', () => {
|
|||
|
||||
it('should emit menu-will-show event', (done) => {
|
||||
menu.on('menu-will-show', () => { done() })
|
||||
menu.popup(w)
|
||||
menu.popup({window: w})
|
||||
})
|
||||
|
||||
it('should emit menu-will-close event', (done) => {
|
||||
menu.on('menu-will-close', () => { done() })
|
||||
menu.popup(w)
|
||||
menu.popup({window: w})
|
||||
menu.closePopup()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue