Skip to content

Commit c3544b7

Browse files
test: allow testing of workspace comments (#613)
* test: allow testing of workspace comments * test: show the delete icon for comments
1 parent a9e3eba commit c3544b7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@
9999
box-sizing: border-box;
100100
}
101101

102+
.blocklyDeleteIcon {
103+
display: block;
104+
}
105+
102106
/* Blocks, connections and fields. */
103107
.blocklyKeyboardNavigation
104108
.blocklyActiveFocus:is(.blocklyPath, .blocklyHighlightedConnectionPath),

test/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function createWorkspace(): Blockly.WorkspaceSvg {
9292
const workspace = Blockly.inject(blocklyDiv, injectOptions);
9393

9494
new KeyboardNavigation(workspace);
95+
Blockly.ContextMenuItems.registerCommentOptions();
9596
registerRunCodeShortcut();
9697

9798
// Disable blocks that aren't inside the setup or draw loops.

0 commit comments

Comments
 (0)