Make callback work for old-style Menu.popup call
While the old-style Menu.popup has been deprecated, it is still being used widely in apps and even in Electron itself.
This commit is contained in:
parent
2ec3b8ce76
commit
73d78d345a
2 changed files with 10 additions and 0 deletions
|
@ -328,6 +328,11 @@ describe('Menu module', () => {
|
|||
menu.popup({}, () => done())
|
||||
menu.closePopup()
|
||||
})
|
||||
|
||||
it('works with old style', (done) => {
|
||||
menu.popup(w, 100, 101, () => done())
|
||||
menu.closePopup()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Menu.closePopup()', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue