@@ -507,39 +507,3 @@ describe "VimState", ->
507507 keydown (' `' )
508508 commandModeInputKeydown (' q' )
509509 expect (editor .getCursorScreenPosition ()).toEqual [1 , 2 ]
510-
511- describe " unknown key bindings" , ->
512- beforeEach ->
513- editor .setText " line one\n line two\n "
514- editor .setCursorBufferPosition [0 , 0 ]
515-
516- describe " in operator-pending mode" , ->
517- beforeEach ->
518- keydown ' c'
519-
520- it " cancels short pending operations on unrecognized keybinding" , ->
521- keydown ' q' # cq doesn't work, should cancel
522- keydown ' w'
523- expect (editor .getCursorBufferPosition ()).toEqual [0 , 5 ]
524- expect (editor .getText ()).toBe " line one\n line two\n "
525- expect (vimState .mode ).toEqual ' command'
526-
527- it " cancels long pending operations on unrecognized keybinding" , ->
528- keydown ' i'
529- keydown ' 3' # i3 is unrecognized, should cancel the whole `ci3` sequence
530- keydown ' w'
531- expect (editor .getCursorBufferPosition ()).toEqual [0 , 5 ]
532- expect (editor .getText ()).toBe " line one\n line two\n "
533- expect (vimState .mode ).toEqual ' command'
534-
535- describe " in visual mode" , ->
536- beforeEach ->
537- keydown ' v'
538-
539- it " cancels whole unrecognized keybinding" , ->
540- keydown ' i'
541- keydown ' 3' # i3 is unrecognized, should cancel the whole `i3` sequence
542- keydown ' w'
543- expect (editor .getCursorBufferPosition ()).toEqual [0 , 6 ]
544- expect (editor .getSelectedText ()).toBe " line o"
545- expect (vimState .mode ).toEqual ' visual'
0 commit comments