spec: Fix failing tests of Menu
This commit is contained in:
parent
62d0dbea5a
commit
90b64504fc
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
menu.delegate.executeCommand(menu.items[0].commandId)
|
||||
menu.delegate.executeCommand({}, menu.items[0].commandId)
|
||||
assert.equal(menu.items[0].checked, true)
|
||||
})
|
||||
|
||||
|
@ -255,9 +255,9 @@ describe('menu module', function () {
|
|||
type: 'radio'
|
||||
}
|
||||
])
|
||||
menu.delegate.executeCommand(menu.items[0].commandId)
|
||||
menu.delegate.executeCommand({}, menu.items[0].commandId)
|
||||
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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue