fix: make windowMenu role correct on MacOS (#15930)
This commit is contained in:
parent
3ddd917ff4
commit
a1a431eb87
3 changed files with 15 additions and 31 deletions
|
@ -349,11 +349,14 @@ describe('MenuItems', () => {
|
|||
|
||||
expect(item.label).to.equal('Window')
|
||||
expect(item.submenu.items[0].role).to.equal('minimize')
|
||||
expect(item.submenu.items[1].role).to.equal('close')
|
||||
expect(item.submenu.items[1].role).to.equal('zoom')
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
expect(item.submenu.items[2].type).to.equal('separator')
|
||||
expect(item.submenu.items[3].role).to.equal('front')
|
||||
|
||||
expect(item.submenu.items[4].type).to.equal('separator')
|
||||
expect(item.submenu.items[5].role).to.equal('window')
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue