From adea60dd4da5cd93416b96403e53553d36b59cc8 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 28 Feb 2012 22:36:29 -0700 Subject: [PATCH] Folds starting on the first line of the buffer can be unfolded --- spec/atom/line-folder-spec.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/atom/line-folder-spec.coffee b/spec/atom/line-folder-spec.coffee index 1f00690b6..a578a17f0 100644 --- a/spec/atom/line-folder-spec.coffee +++ b/spec/atom/line-folder-spec.coffee @@ -184,6 +184,13 @@ describe "LineFolder", -> folder.createFold(new Range([4, 0], [7, 4])) expect(folder.lineForScreenRow(4).text).toBe '...}' + describe "when a fold starts on the first line of the buffer", -> + it "renders the first line correctly when the fold is destroyed", -> + fold = folder.createFold(new Range([0, 14], [0, 27])) + fold.destroy() + expect(folder.lineForScreenRow(0).text).toBe 'var quicksort = function () {' + + describe "when the buffer changes", -> [fold1, fold2] = [] beforeEach ->