add failing spec for undefined accelerator
This commit is contained in:
parent
67db92d500
commit
87395cdef8
1 changed files with 11 additions and 0 deletions
|
@ -32,6 +32,17 @@ describe('menu module', function() {
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('does not throw exceptions for undefined/null values', function() {
|
||||||
|
assert.doesNotThrow(function(){
|
||||||
|
Menu.buildFromTemplate([
|
||||||
|
{
|
||||||
|
label: 'text',
|
||||||
|
accelerator: undefined
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('Menu.buildFromTemplate should reorder based on item position specifiers', function() {
|
describe('Menu.buildFromTemplate should reorder based on item position specifiers', function() {
|
||||||
it('should position before existing item', function() {
|
it('should position before existing item', function() {
|
||||||
var menu = Menu.buildFromTemplate([
|
var menu = Menu.buildFromTemplate([
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue