From 5ed6657d47223aac501260af5602de31522435ca Mon Sep 17 00:00:00 2001 From: Luke Pommersheim Date: Fri, 28 Aug 2015 12:06:25 +0200 Subject: [PATCH] spec garden for reversing the buffer selections :tulip: --- spec/text-editor-spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 5823afbb6..7d1330fce 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -2171,7 +2171,7 @@ describe "TextEditor", -> editor.setSelectedBufferRanges([[[1, 2], [1, 9]], [[3, 2], [3, 9]], [[5, 2], [5, 9]]]) editor.moveLineDown() - expect(editor.getSelectedBufferRanges()).toEqual [[[2, 2], [2, 9]], [[4, 2], [4, 9]], [[6, 2], [6, 9]]] + expect(editor.getSelectedBufferRanges()).toEqual [[[6, 2], [6, 9]], [[4, 2], [4, 9]], [[2, 2], [2, 9]]] expect(editor.lineTextForBufferRow(1)).toBe " if (items.length <= 1) return items;" expect(editor.lineTextForBufferRow(2)).toBe " var sort = function(items) {" expect(editor.lineTextForBufferRow(3)).toBe " while(items.length > 0) {" @@ -2192,7 +2192,7 @@ describe "TextEditor", -> editor.setSelectedBufferRanges([[[1, 2], [1, 6]], [[3, 0], [3, 4]], [[8, 0], [8, 3]]]) editor.moveLineDown() - expect(editor.getSelectedBufferRanges()).toEqual [[[2, 2], [2, 6]], [[7, 0], [7, 4]], [[9, 0], [9, 3]]] + expect(editor.getSelectedBufferRanges()).toEqual [[[9, 0], [9, 3]], [[7, 0], [7, 4]], [[2, 2], [2, 6]]] expect(editor.lineTextForBufferRow(2)).toBe " var sort = function(items) {" expect(editor.isFoldedAtBufferRow(3)).toBeTruthy() expect(editor.isFoldedAtBufferRow(4)).toBeTruthy() @@ -2207,7 +2207,7 @@ describe "TextEditor", -> editor.setSelectedBufferRanges([[[3, 2], [3, 9]], [[3, 12], [3, 13]]]) editor.moveLineDown() - expect(editor.getSelectedBufferRanges()).toEqual [[[4, 2], [4, 9]], [[4, 12], [4, 13]]] + expect(editor.getSelectedBufferRanges()).toEqual [[[4, 12], [4, 13]], [[4, 2], [4, 9]]] expect(editor.lineTextForBufferRow(3)).toBe " while(items.length > 0) {" describe ".insertText(text)", ->