From 554165ca482bb99a14fb796670858ff92247363c Mon Sep 17 00:00:00 2001 From: abe33 Date: Fri, 9 May 2014 00:02:31 +0200 Subject: [PATCH] :lipstick: Harmonize lineForRow calls in specs --- spec/editor-spec.coffee | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/spec/editor-spec.coffee b/spec/editor-spec.coffee index 1324d0f36..dfa9c3d3f 100644 --- a/spec/editor-spec.coffee +++ b/spec/editor-spec.coffee @@ -2070,31 +2070,31 @@ describe "Editor", -> 'sort' ]) - describe ".pasteText()", -> + fdescribe ".pasteText()", -> it "pastes text into the buffer", -> atom.clipboard.write('first') editor.pasteText() - expect(editor.buffer.lineForRow(0)).toBe "var first = function () {" - expect(buffer.lineForRow(1)).toBe " var first = function(items) {" + expect(editor.lineForBufferRow(0)).toBe "var first = function () {" + expect(editor.lineForBufferRow(1)).toBe " var first = function(items) {" describe 'when the clipboard has many selections', -> it "pastes each selection separately into the buffer", -> atom.clipboard.write('first\nsecond', {selections: ['first', 'second'] }) editor.pasteText() - expect(editor.buffer.lineForRow(0)).toBe "var first = function () {" - expect(buffer.lineForRow(1)).toBe " var second = function(items) {" + expect(editor.lineForBufferRow(0)).toBe "var first = function () {" + expect(editor.lineForBufferRow(1)).toBe " var second = function(items) {" describe 'and the selections count does not match', -> it "pastes the whole text into the buffer", -> atom.clipboard.write('first\nsecond\nthird', {selections: ['first', 'second', 'third'] }) editor.pasteText() - expect(editor.buffer.lineForRow(0)).toBe "var first" - expect(buffer.lineForRow(1)).toBe "second" - expect(buffer.lineForRow(2)).toBe "third = function () {" + expect(editor.lineForBufferRow(0)).toBe "var first" + expect(editor.lineForBufferRow(1)).toBe "second" + expect(editor.lineForBufferRow(2)).toBe "third = function () {" - expect(editor.buffer.lineForRow(3)).toBe " var first" - expect(buffer.lineForRow(4)).toBe "second" - expect(buffer.lineForRow(5)).toBe "third = function(items) {" + expect(editor.lineForBufferRow(3)).toBe " var first" + expect(editor.lineForBufferRow(4)).toBe "second" + expect(editor.lineForBufferRow(5)).toBe "third = function(items) {" describe ".indentSelectedRows()", -> describe "when nothing is selected", ->