         expect(editor.getCursorScreenPosition()).toEqual [0, 10]
 
         simulateTabKeyEvent()
-        expect(buffer.lineForRow(0)).toBe "a; @unique seevar quicksort = function () {"
+        expect(editor.lineTextForBufferRow(0)).toBe "a; @unique seevar quicksort = function () {"
         expect(editor.getCursorScreenPosition()).toEqual [0, 14]
 
     describe "when snippet contains tabstops with or without placeholder", ->

      editor.setSelectedBufferRange([[0, 4], [0, 13]])
      Snippets.insert("hello ${1:world}", editor)

      expect(buffer.lineForRow(0)).toBe "var hello world = function () {"
      expect(editor.getMarkerCount()).toBe 2
      expect(editor.getSelectedBufferRange()).toEqual [[0, 10], [0, 15]]


          editor.insertText(' t8')
          editor.addCursorAtBufferPosition([0, 2])
          simulateTabKeyEvent()
          expect(editor.lineTextForBufferRow(0)).toBe "t9  var quicksort = function () {"
          expect(editor.lineTextForBufferRow(12)).toBe "}; t8 "

      describe "when a snippet is triggered within an existing snippet expansion", ->
        it "ignores the snippet expansion and goes to the next tab stop", ->
