Skip to content

Commit 796da35

Browse files
committed
compass menu accelerator assertions
1 parent 2cafca0 commit 796da35

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

packages/compass/src/main/menu.spec.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,30 @@ describe('CompassMenu', function () {
664664
label: 'Test Meta',
665665
accelerator: 'Meta+Ctrl+T',
666666
},
667+
{
668+
label: 'Test CmdOrCtrl',
669+
accelerator: 'CmdOrCtrl+Q',
670+
},
671+
{
672+
label: 'Test Command',
673+
accelerator: 'Command+H',
674+
},
675+
{
676+
label: 'Test Command+Shift',
677+
accelerator: 'Command+Shift+H',
678+
},
679+
{
680+
label: 'Test Atl+CmdOrCtrl',
681+
accelerator: 'Alt+CmdOrCtrl+S',
682+
},
683+
{
684+
label: 'Test Shift+CmdOrCtrl',
685+
accelerator: 'Shift+CmdOrCtrl+S',
686+
},
667687
]);
668688
const menuWillClose = once(menu, 'menu-will-close');
669689
menu.popup({
670-
window: new BrowserWindow({ show: false, width: 100, height: 100 }),
690+
window: new BrowserWindow({ show: false }),
671691
});
672692
menu.closePopup();
673693
await menuWillClose;

0 commit comments

Comments
 (0)