Adjust otherwise-passing spec for overflow

This commit is contained in:
Nathan Sobo 2012-05-29 11:50:54 -06:00
parent 8fba4ff935
commit e9a67208e6

View File

@ -603,9 +603,9 @@ fdescribe "Editor", ->
describe "when the change the follows the last rendered row", ->
it "does not change the rendered lines", ->
buffer.change([[12,0], [12,0]], "12\n13\n14\n")
expect(editor.visibleLines.find(".line").length).toBe 5
expect(editor.visibleLines.find(".line").length).toBe 7
expect(editor.visibleLines.find(".line:first").text()).toBe buffer.lineForRow(0)
expect(editor.visibleLines.find(".line:last").text()).toBe buffer.lineForRow(4)
expect(editor.visibleLines.find(".line:last").text()).toBe buffer.lineForRow(6)
describe "when lines are removed", ->
beforeEach ->