mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
👷 Add a spec
This commit is contained in:
@@ -283,9 +283,19 @@ describe('Menu module', () => {
|
||||
})
|
||||
|
||||
it('returns immediately', () => {
|
||||
menu.popup(w, {x: 100, y: 100, async: true})
|
||||
menu.popup(w, {x: 100, y: 100})
|
||||
menu.closePopup(w)
|
||||
})
|
||||
|
||||
it('works without a given BrowserWindow and options', () => {
|
||||
menu.popup({x: 100, y: 100})
|
||||
menu.closePopup()
|
||||
})
|
||||
|
||||
it('works without a given BrowserWindow', () => {
|
||||
menu.popup(100, 100)
|
||||
menu.closePopup()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Menu.setApplicationMenu', () => {
|
||||
|
||||
Reference in New Issue
Block a user