From 647b5881a8143643cdde3eefeda16ab404cc85ab Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 16 Aug 2013 21:16:34 -0700 Subject: [PATCH] Remove TextBuffer::lineEndingForRow spec covered in telepath --- spec/app/text-buffer-spec.coffee | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/spec/app/text-buffer-spec.coffee b/spec/app/text-buffer-spec.coffee index f8550b3d0..c6deb9c2e 100644 --- a/spec/app/text-buffer-spec.coffee +++ b/spec/app/text-buffer-spec.coffee @@ -841,25 +841,6 @@ describe 'TextBuffer', -> expect(buffer.getText()).toBe "ab\nc" describe "line ending support", -> - describe ".lineEndingForRow(line)", -> - it "returns the line ending for each buffer line", -> - buffer.setText("a\r\nb\nc\r\nd") - expect(buffer.lineEndingForRow(0)).toBe '\r\n' - expect(buffer.lineEndingForRow(1)).toBe '\n' - expect(buffer.lineEndingForRow(2)).toBe '\r\n' - expect(buffer.lineEndingForRow(3)).toBeUndefined() - buffer.setText("abc\r") - expect(buffer.lineEndingForRow(0)).toBeUndefined() - - describe ".lineForRow(line)", -> - it "returns the line text without the line ending for both lf and crlf lines", -> - buffer.setText("a\r\nb\nc") - expect(buffer.lineForRow(0)).toBe 'a' - expect(buffer.lineForRow(1)).toBe 'b' - expect(buffer.lineForRow(2)).toBe 'c' - buffer.setText("abc\r") - expect(buffer.lineForRow(0)).toBe 'abc\r' - describe ".getText()", -> it "returns the text with the corrent line endings for each row", -> buffer.setText("a\r\nb\nc")