File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ suite('Scrolling into view', function () {
5050 await sendKeyAndWait ( this . browser , 'm' ) ;
5151 await sendKeyAndWait ( this . browser , [ Key . Alt , Key . ArrowDown ] , 25 ) ;
5252 await sendKeyAndWait ( this . browser , Key . Enter ) ;
53+ const movedBlockBounds = await this . browser . execute ( ( ) => {
54+ const block = Blockly . getFocusManager ( ) . getFocusedNode ( ) as Blockly . BlockSvg ;
55+ const blockBounds = block . getBoundingRectangleWithoutChildren ( ) ;
56+ return blockBounds ;
57+ } ) ;
58+ console . log ( "just moved block bounds:" , movedBlockBounds ) ;
5359 // Scroll back up, leaving cursor on the draw block out of the viewport.
5460 const scrollPosition1 = await this . browser . execute ( ( ) => {
5561 const workspace = Blockly . getMainWorkspace ( ) as Blockly . WorkspaceSvg ;
You can’t perform that action at this time.
0 commit comments