From e838866655ff334cc9d1c00b106416a82afec30a Mon Sep 17 00:00:00 2001 From: Luke Pommersheim Date: Mon, 24 Aug 2015 08:13:39 +0200 Subject: [PATCH] remove spec pertaining to moving down on last line :sunflower: --- spec/text-editor-spec.coffee | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 5d67081b2..5823afbb6 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -2210,24 +2210,6 @@ describe "TextEditor", -> expect(editor.getSelectedBufferRanges()).toEqual [[[4, 2], [4, 9]], [[4, 12], [4, 13]]] expect(editor.lineTextForBufferRow(3)).toBe " while(items.length > 0) {" - describe "when one of the selections spans the last buffer row ", -> - it "doesn't move any lines", -> - editor.setSelectedBufferRanges([[[0, 2], [1, 9]], [[2, 2], [2, 9]], [[12, 2], [12, 2]]]) - - editor.moveLineDown() - - expect(editor.getSelectedBufferRanges()).toEqual [[[0, 2], [1, 9]], [[2, 2], [2, 9]], [[12, 2], [12, 2]]] - expect(buffer.isModified()).toBe false - - describe "when one of the selections spans the last line, and it is empty", -> - it "doesn't move any lines, since the last line can't move", -> - buffer.append('\n') - editor.setSelectedBufferRanges([[[0, 2], [1, 9]], [[2, 2], [2, 9]], [[13, 0], [13, 0]]]) - - editor.moveLineDown() - - expect(editor.getSelectedBufferRanges()).toEqual [[[0, 2], [1, 9]], [[2, 2], [2, 9]], [[13, 0], [13, 0]]] - describe ".insertText(text)", -> describe "when there is a single selection", -> beforeEach ->