@@ -434,13 +434,13 @@ suite('Keyboard Shortcut Items', function () {
434434 } ) ;
435435 } ) ;
436436 } ) ;
437- // Do not undo if a gesture is in progress.
438- suite ( 'Gesture in progress' , function ( ) {
437+ // Do not undo if a drag is in progress.
438+ suite ( 'Drag in progress' , function ( ) {
439439 testCases . forEach ( function ( testCase ) {
440440 const testCaseName = testCase [ 0 ] ;
441441 const keyEvent = testCase [ 1 ] ;
442442 test ( testCaseName , function ( ) {
443- sinon . stub ( Blockly . Gesture , 'inProgress ' ) . returns ( true ) ;
443+ sinon . stub ( this . workspace , 'isDragging ' ) . returns ( true ) ;
444444 this . injectionDiv . dispatchEvent ( keyEvent ) ;
445445 sinon . assert . notCalled ( this . undoSpy ) ;
446446 sinon . assert . notCalled ( this . hideChaffSpy ) ;
@@ -494,13 +494,13 @@ suite('Keyboard Shortcut Items', function () {
494494 } ) ;
495495 } ) ;
496496 } ) ;
497- // Do not undo if a gesture is in progress.
498- suite ( 'Gesture in progress' , function ( ) {
497+ // Do not redo if a drag is in progress.
498+ suite ( 'Drag in progress' , function ( ) {
499499 testCases . forEach ( function ( testCase ) {
500500 const testCaseName = testCase [ 0 ] ;
501501 const keyEvent = testCase [ 1 ] ;
502502 test ( testCaseName , function ( ) {
503- sinon . stub ( Blockly . Gesture , 'inProgress ' ) . returns ( true ) ;
503+ sinon . stub ( this . workspace , 'isDragging ' ) . returns ( true ) ;
504504 this . injectionDiv . dispatchEvent ( keyEvent ) ;
505505 sinon . assert . notCalled ( this . redoSpy ) ;
506506 sinon . assert . notCalled ( this . hideChaffSpy ) ;
@@ -534,8 +534,8 @@ suite('Keyboard Shortcut Items', function () {
534534 sinon . assert . calledWith ( this . undoSpy , true ) ;
535535 sinon . assert . calledOnce ( this . hideChaffSpy ) ;
536536 } ) ;
537- test ( 'Not called when a gesture is in progress' , function ( ) {
538- sinon . stub ( Blockly . Gesture , 'inProgress ' ) . returns ( true ) ;
537+ test ( 'Not called when a drag is in progress' , function ( ) {
538+ sinon . stub ( this . workspace , 'isDragging ' ) . returns ( true ) ;
539539 this . injectionDiv . dispatchEvent ( this . ctrlYEvent ) ;
540540 sinon . assert . notCalled ( this . undoSpy ) ;
541541 sinon . assert . notCalled ( this . hideChaffSpy ) ;
0 commit comments