     it "restores scroll postion of edit session", ->
       editor.attachToDom(heightInLines: 12)
       buffer1 = editor.buffer
-      firstScrollTop = editor.scrollView.scrollTop()
+      firstScrollTop = editor.scrollTop()
 
       buffer2 = new Buffer(require.resolve('fixtures/two-hundred.txt'))
       editor.setBuffer(buffer2)
       editor.moveCursorToBottom()
-      secondScrollTop = editor.scrollView.scrollTop()
+      secondScrollTop = editor.scrollTop()
 
       expect(firstScrollTop).not.toEqual secondScrollTop
       editor.loadNextEditSession()
       expect(editor.buffer.path).toBe buffer1.path
-      expect(editor.scrollView.scrollTop()).toBe firstScrollTop
+      expect(editor.scrollTop()).toBe firstScrollTop
 
       editor.loadNextEditSession()
       expect(editor.buffer.path).toBe buffer2.path
-      expect(editor.scrollView.scrollTop()).toBe secondScrollTop
+      expect(editor.scrollTop()).toBe secondScrollTop
 
   describe ".loadPreviousEditSession()", ->
     it "loads the next editor state and wraps to beginning when end is reached", ->

          expect(editor.scrollTop()).toBe(editor.lineHeight)

          editor.moveCursorUp()
          expect(editor.scrollView.scrollTop()).toBe(0)

      describe "horizontal scrolling", ->
        charWidth = null

        it "doesn't adjust the scrollTop of the vertical scrollbar", ->
          editor.scrollTop(100, adjustVerticalScrollbar: false)
          expect(editor.verticalScrollbar.scrollTop()).toBe 0
          expect(editor.renderedLines.css('top')).toBe "-100px"
          expect(editor.gutter.scrollTop()).toBe 100

    describe "when called with no argument", ->
