add spec for menu.popup(window, callback)
This commit is contained in:
parent
cd9e7142e4
commit
9c52d273dd
1 changed files with 5 additions and 0 deletions
|
@ -383,6 +383,11 @@ describe('Menu module', () => {
|
||||||
assert.equal(y, 101)
|
assert.equal(y, 101)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('works with a given BrowserWindow, no options, and a callback', (done) => {
|
||||||
|
menu.popup(w, () => done())
|
||||||
|
menu.closePopup()
|
||||||
|
})
|
||||||
|
|
||||||
it('calls the callback', (done) => {
|
it('calls the callback', (done) => {
|
||||||
menu.popup({}, () => done())
|
menu.popup({}, () => done())
|
||||||
menu.closePopup()
|
menu.closePopup()
|
||||||
|
|
Loading…
Reference in a new issue