mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
feat!: change gestures to look at selected when dragging (#7991)
* feat: change gestures to look at selected when dragging * chore: fix tests * chore: format * chore: PR comments
This commit is contained in:
@@ -74,9 +74,7 @@ suite('Comment Deserialization', function () {
|
||||
simulateClick(this.workspace.trashcan.svgGroup);
|
||||
// Place from trashcan.
|
||||
simulateClick(
|
||||
this.workspace.trashcan.flyout.svgGroup_.querySelector(
|
||||
'.blocklyDraggable',
|
||||
),
|
||||
this.workspace.trashcan.flyout.svgGroup_.querySelector('.blocklyPath'),
|
||||
);
|
||||
chai.assert.equal(this.workspace.getAllBlocks().length, 1);
|
||||
// Check comment.
|
||||
@@ -113,7 +111,7 @@ suite('Comment Deserialization', function () {
|
||||
const toolbox = this.workspace.getToolbox();
|
||||
simulateClick(toolbox.HtmlDiv.querySelector('.blocklyTreeRow'));
|
||||
simulateClick(
|
||||
toolbox.getFlyout().svgGroup_.querySelector('.blocklyDraggable'),
|
||||
toolbox.getFlyout().svgGroup_.querySelector('.blocklyPath'),
|
||||
);
|
||||
chai.assert.equal(this.workspace.getAllBlocks().length, 1);
|
||||
// Check comment.
|
||||
|
||||
Reference in New Issue
Block a user