             editor.setSoftTabs(false)
             editor.insertText("t3")
             simulateTabKeyEvent()
-            expect(buffer.lineForRow(1)).toBe "\tline 2"
+            expect(editor.lineTextForBufferRow(1)).toBe "\tline 2"
             expect(editor.getCursorBufferPosition()).toEqual [1, 7]
 
       describe "when the snippet prefix is indented", ->

            editor.insertText('t8')
            simulateTabKeyEvent()

            expect(buffer.lineForRow(0)).toBe "with placeholder test"
            editor.moveRight()
            editor.moveLeft()
            editor.insertText("foo")
            expect(buffer.lineForRow(0)).toBe "with placeholder tesfoot"

            simulateTabKeyEvent()
            expect(buffer.lineForRow(1)).toBe "without placeholder var quicksort = function () {"
            editor.insertText("test")
            expect(buffer.lineForRow(1)).toBe "without placeholder testvar quicksort = function () {"
            editor.moveLeft()
            editor.insertText("foo")
            expect(buffer.lineForRow(1)).toBe "without placeholder tesfootvar quicksort = function () {"

        describe "when the backspace is press within the bounds of the current tab stop", ->
          it "should not terminate the snippet", ->

        expect(editor.getCursorScreenPosition()).toEqual [0, 10]

        simulateTabKeyEvent()
        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", ->
