Update expected accelerator
This commit is contained in:
parent
6165908ba7
commit
813e528350
1 changed files with 5 additions and 5 deletions
|
@ -400,11 +400,11 @@ describe('menu module', function () {
|
|||
it('includes a default label and accelerator', function () {
|
||||
var item = new MenuItem({role: 'close'})
|
||||
assert.equal(item.label, 'Close')
|
||||
assert.equal(item.accelerator, 'CmdOrCtrl+W')
|
||||
assert.equal(item.accelerator, 'CommandOrControl+W')
|
||||
|
||||
var item = new MenuItem({role: 'close', label: 'Other'})
|
||||
assert.equal(item.label, 'Other')
|
||||
assert.equal(item.accelerator, 'CmdOrCtrl+W')
|
||||
assert.equal(item.accelerator, 'CommandOrControl+W')
|
||||
|
||||
var item = new MenuItem({role: 'close', accelerator: 'D'})
|
||||
assert.equal(item.label, 'Close')
|
||||
|
@ -418,9 +418,9 @@ describe('menu module', function () {
|
|||
assert.equal(item.label, 'Help')
|
||||
assert.equal(item.accelerator, undefined)
|
||||
|
||||
var item = new MenuItem({role: 'about'})
|
||||
assert.equal(item.label, 'About Electron Test')
|
||||
assert.equal(item.accelerator, undefined)
|
||||
var item = new MenuItem({role: 'hide'})
|
||||
assert.equal(item.label, 'Hide Electron Test')
|
||||
assert.equal(item.accelerator, 'Command+H')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue