       keydown 'u'
       expect(editor.getText()).toBe "abc\n  012\n"
 
-
   describe "the a keybinding", ->
     beforeEach ->
       editor.getBuffer().setText("012\n")

    opts.raw = true
    keydown(key, opts)

  describe "cancel operation is robust", ->
    it "can call cancel operation, even if no operator pending", ->
      # cancel operation pushes an empty input operation
      # doing this without a pending operation throws an exception
      expect(-> vimState.pushOperations(new Input(''))).toThrow()

      expect(vimState.isOperatorPending()).toBe true
      editor.commandModeInputView.viewModel.cancel()

      expect(vimState.isOperatorPending()).toBe false
      expect(-> editor.commandModeInputView.viewModel.cancel()).not.toThrow()

  describe "the x keybinding", ->
    describe "on a line with content", ->
