test: move MenuItem spec to main process (#19235)
* test: move MenuItem spec to main process * spec: fix errant default accel test * Update menu-item-roles.js * Update api-menu-item-spec.ts
This commit is contained in:
parent
3d2eb8360a
commit
355b307618
3 changed files with 123 additions and 134 deletions
14
spec-main/ambient.d.ts
vendored
14
spec-main/ambient.d.ts
vendored
|
@ -1 +1,15 @@
|
|||
declare var isCI: boolean;
|
||||
|
||||
declare namespace Electron {
|
||||
interface Menu {
|
||||
delegate: {
|
||||
executeCommand(menu: Menu, event: any, id: number): void;
|
||||
menuWillShow(menu: Menu): void;
|
||||
};
|
||||
getAcceleratorTextAt(index: number): string;
|
||||
}
|
||||
|
||||
interface MenuItem {
|
||||
getDefaultRoleAccelerator(): Accelerator | undefined;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue