           expectedPaddingTop = firstOverdrawnBufferRow * editor.lineHeight
           expect(editor.visibleLines.css('padding-top')).toBe "#{expectedPaddingTop}px"
           expect(editor.visibleLines.css('padding-bottom')).toBe "0px"
-
-      it "renders additional lines when the editor is resized", ->
-        setEditorHeightInLines(editor, 10)
-        $(window).trigger 'resize'
-
-        expect(editor.visibleLines.find('.line').length).toBe 12
-        expect(editor.visibleLines.find('.line:first').text()).toBe buffer.lineForRow(0)
-        expect(editor.visibleLines.find('.line:last').text()).toBe buffer.lineForRow(11)
-
-      it "renders correctly when scrolling after text is added to the buffer", ->
-        editor.insertText("1\n")
-        _.times 4, -> editor.moveCursorDown()
-        expect(editor.visibleLines.find('.line:eq(2)').text()).toBe editor.buffer.lineForRow(2)
-        expect(editor.visibleLines.find('.line:eq(7)').text()).toBe editor.buffer.lineForRow(7)
-
-      it "renders correctly when scrolling after text is removed from buffer", ->
-        editor.buffer.delete([[0,0],[1,0]])
-        expect(editor.visibleLines.find('.line:eq(0)').text()).toBe editor.buffer.lineForRow(0)
-        expect(editor.visibleLines.find('.line:eq(5)').text()).toBe editor.buffer.lineForRow(5)
-
-        editor.scrollTop(3 * editor.lineHeight)
-        expect(editor.visibleLines.find('.line:first').text()).toBe editor.buffer.lineForRow(1)
-        expect(editor.visibleLines.find('.line:last').text()).toBe editor.buffer.lineForRow(10)
 
     describe "when lines are added", ->
       beforeEach ->

        expect(editor.visibleLines.find('.line:first').text()).toBe buffer.lineForRow(0)
        expect(editor.visibleLines.find('.line:last').text()).toBe buffer.lineForRow(7)

      describe "when scrolling vertically", ->
        describe "whes scrolling less than the editor's height", ->
          it "draws new lines and removes old lines when the last visible line will exceed the last rendered line", ->
            expect(editor.visibleLines.find('.line').length).toBe 8


_ = require 'underscore'
fs = require 'fs'

fdescribe "Editor", ->
  [rootView, buffer, editor, cachedLineHeight] = []

  getLineHeight = ->
