From 3c2facc7befb5cb7f6fbb92b11c6767ded415026 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 4 Jun 2012 21:11:32 -0600 Subject: [PATCH] Add a disabled failing spec for text rendering when moving to the end of the file --- spec/app/editor-spec.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index b159fea9f..d9d247580 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -700,6 +700,16 @@ describe "Editor", -> expect(editor.renderedLines.find('.line').length).toBe 1 expect(editor.renderedLines.find('.line').text()).toBe buffer.lineForRow(0) + describe "when autoscrolling at the end of the document", -> + xit "renders lines properly", -> + editor.setBuffer(new Buffer(require.resolve 'fixtures/two-hundred.txt')) + editor.attachToDom(heightInLines: 5.5) + expect(editor.renderedLines.find('.line').length).toBe 8 + + editor.moveCursorToBottom() + + expect(editor.renderedLines.find('.line').length).toBe 8 + describe "gutter rendering", -> beforeEach -> editor.attachToDom(heightInLines: 5.5)