spec: Fix failing tests of Menu

This commit is contained in:
Cheng Zhao 2016-06-22 13:36:10 +09:00
parent 62d0dbea5a
commit 90b64504fc

View file

@ -231,7 +231,7 @@ describe('menu module', function () {
} }
} }
]) ])
menu.delegate.executeCommand(menu.items[0].commandId) menu.delegate.executeCommand({}, menu.items[0].commandId)
}) })
}) })
@ -244,7 +244,7 @@ describe('menu module', function () {
} }
]) ])
assert.equal(menu.items[0].checked, false) assert.equal(menu.items[0].checked, false)
menu.delegate.executeCommand(menu.items[0].commandId) menu.delegate.executeCommand({}, menu.items[0].commandId)
assert.equal(menu.items[0].checked, true) assert.equal(menu.items[0].checked, true)
}) })
@ -255,9 +255,9 @@ describe('menu module', function () {
type: 'radio' type: 'radio'
} }
]) ])
menu.delegate.executeCommand(menu.items[0].commandId) menu.delegate.executeCommand({}, menu.items[0].commandId)
assert.equal(menu.items[0].checked, true) assert.equal(menu.items[0].checked, true)
menu.delegate.executeCommand(menu.items[0].commandId) menu.delegate.executeCommand({}, menu.items[0].commandId)
assert.equal(menu.items[0].checked, true) assert.equal(menu.items[0].checked, true)
}) })