       selectedBufferRange().toEqual options.selectedBufferRange
     if options.selectedBufferRanges?
       selectedBufferRanges().toEqual options.selectedBufferRanges
+    if options.scrollTop?
+      expect(editor.getScrollTop()).toEqual options.scrollTop
 
     if options.selectedScreenRange?
       selectedScreenRange().toEqual options.selectedScreenRange

  selectedBufferRanges = ->
    expect editor.getSelectedBufferRanges()

  ensure = (_keystroke, options={}) ->
    unless _.isEmpty(_keystroke)
      keystroke(_keystroke)
    if options.text?
      expect(editor.getText()).toBe options.text
    if options.cursor?
      expect(editor.getCursorScreenPosition()).toEqual options.cursor
    if options.register?
      expect(vimState.register.get('"').text).toBe options.register
    if options.selectedText?

            cursor: [1, 0]

  describe "the enter keybinding", ->
    # [FIXME] Dirty test, whats this!?
    keydownCodeForEnter = '\r' # 'enter' does not work
    startingText = "  abc\n  abc\nabcdefg\n"

