Add tests for contextmenu_items (#4118)

Add tests for context menu items
This commit is contained in:
Maribeth Bottorff
2020-08-10 11:46:10 -07:00
committed by GitHub
parent 6dcf927e05
commit 9568d3f2cc
3 changed files with 409 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ Blockly.ContextMenuItems.registerExpand = function() {
Blockly.ContextMenuItems.toggleOption_(false, scope.workspace.getTopBlocks(true));
},
scopeType: Blockly.ContextMenuRegistry.ScopeType.WORKSPACE,
id: 'toggleWorkspace',
id: 'expandWorkspace',
weight: 0,
};
Blockly.ContextMenuRegistry.registry.register(expandOption);