Skip to content

Commit

Permalink
Update expected accelerator
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jun 22, 2016
1 parent 6165908 commit 813e528
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/api-menu-spec.js
Expand Up @@ -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')
Expand All @@ -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')
})
})
})

0 comments on commit 813e528

Please sign in to comment.