mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: Stricter Testing For Menu Items (#13992)
This PR includes stricter testing for empty objects so that false context menus are not created along with the tests to ensure future compatibility.
This commit is contained in:
@@ -47,6 +47,9 @@ The built-in `role` behavior will give the best native experience.
|
||||
The `label` and `accelerator` values are optional when using a `role` and will
|
||||
default to appropriate values for each platform.
|
||||
|
||||
Every menu item must have either a `role`, `label`, or in the case of a separator
|
||||
a `type`.
|
||||
|
||||
The `role` property can have following values:
|
||||
|
||||
* `undo`
|
||||
|
||||
Reference in New Issue
Block a user