     describe "the ze keybinding", ->
       zePos = (pos) ->
         editor.setCursorBufferPosition([0, pos])
-        keystroke 'ze'
+        keystroke 'z e'
         editorElement.getScrollLeft()
 
       startPosition = NaN

{getVimState} = require './spec-helper'

describe "Scrolling", ->


    describe "the zt keybinding", ->
      it "moves the screen to position cursor at the top of the window and leave cursor in the same column", ->
        keystroke 'z t'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(960)
        expect(editor.moveToFirstCharacterOfLine).not.toHaveBeenCalled()

    describe "the z. keybinding", ->
      it "moves the screen to position cursor at the center of the window and moves cursor to first non-blank in the line", ->
        keystroke 'z .'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(900)
        expect(editor.moveToFirstCharacterOfLine).toHaveBeenCalled()

    describe "the zz keybinding", ->
      it "moves the screen to position cursor at the center of the window and leave cursor in the same column", ->
        keystroke 'z z'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(900)
        expect(editor.moveToFirstCharacterOfLine).not.toHaveBeenCalled()

    describe "the z- keybinding", ->
      it "moves the screen to position cursor at the bottom of the window and moves cursor to first non-blank in the line", ->
        keystroke 'z -'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(860)
        expect(editor.moveToFirstCharacterOfLine).toHaveBeenCalled()

    describe "the zb keybinding", ->
      it "moves the screen to position cursor at the bottom of the window and leave cursor in the same column", ->
        keystroke 'z b'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(860)
        expect(editor.moveToFirstCharacterOfLine).not.toHaveBeenCalled()

