         keydown('~')
 
         expect(editor.getText()).toBe "aBc\nxYz"
+        expect(editor.getCursorScreenPosition()).toEqual [1, 0]
 
   describe 'the gU keybinding', ->
     beforeEach ->

        keydown('u')

        expect(editor.getText()).toBe "aBc\nxyz"

  describe "the i keybinding", ->
    beforeEach ->

        expect(editor.getText()).toBe 'Abc\nXyZ'

    describe "when followed by g~", ->
      it "toggles the case of the whole line, and the cursor ends up on the first character of that line", ->
        editor.setCursorBufferPosition([1, 1])

        keydown('g')
        keydown('~')
