mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
add failing spec for undefined accelerator
This commit is contained in:
@@ -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() {
|
||||
it('should position before existing item', function() {
|
||||
var menu = Menu.buildFromTemplate([
|
||||
|
||||
Reference in New Issue
Block a user