mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
spec: callback for Menu.popup
This commit is contained in:
@@ -323,6 +323,11 @@ describe('Menu module', () => {
|
||||
assert.equal(x, 100)
|
||||
assert.equal(y, 101)
|
||||
})
|
||||
|
||||
it('calls the callback', (done) => {
|
||||
menu.popup({}, () => done())
|
||||
menu.closePopup()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Menu.closePopup()', () => {
|
||||
|
||||
Reference in New Issue
Block a user