From 2bea67057bc48457e47da5ffaa09147e9f2dfbca Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 1 Oct 2012 13:39:41 -0700 Subject: [PATCH] Add spec for line highlight after backspace --- spec/app/editor-spec.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 7e68c5b81..7c6e4735f 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -1664,6 +1664,11 @@ describe "Editor", -> expect(editor.find('.line.cursor-line').length).toBe 1 expect(editor.find('.line.cursor-line').text()).toBe buffer.lineForRow(1) + fit "when a newline is deleted with backspace, the line of the new cursor position is highlighted (regression)", -> + editor.setCursorScreenPosition([1,0]) + editor.backspace() + expect(editor.find('.line.cursor-line').length).toBe 1 + describe "when there is wrapping", -> beforeEach -> editor.setSoftWrap(true)