Update expected accelerator

This commit is contained in:
Kevin Sawicki 2016-06-22 15:35:58 -07:00
parent 6165908ba7
commit 813e528350

View file

@ -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')
})
})
})