       pane = {activate: jasmine.createSpy("activate")}
       spyOn(atom.workspace, 'getActivePane').andReturn(pane)
 
-      editor.setText("abc\ndef\nabc\ndef\n")
-      editor.setCursorBufferPosition([0, 0])
+      set
+        text: "abc\ndef\nabc\ndef\n"
+        cursor: [0, 0]
 
       # clear search history
       vimState.globalVimState.searchHistory = []

            cursor: [1, 0]

  describe "the enter keybinding", ->
    keydownCodeForEnter = '\r' # 'enter' does not work
    startingText = "  abc\n  abc\nabcdefg\n"


      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
