Add trailing whitespace to line

This commit is contained in:
Kevin Sawicki
2014-10-16 10:58:02 -07:00
parent cdd31d69a8
commit a03c9b6d68

View File

@@ -3412,6 +3412,9 @@ describe "TextEditor", ->
describe "when no text is selected", ->
describe "when the line below isn't empty", ->
it "joins the line below with the current line separated by a space and moves the cursor to the start of line that was moved up", ->
editor.setCursorBufferPosition([0, Infinity])
editor.insertText(' ')
editor.setCursorBufferPosition([0])
editor.joinLines()
expect(editor.lineTextForBufferRow(0)).toBe 'var quicksort = function () { var sort = function(items) {'
expect(editor.getCursorBufferPosition()).toEqual [0, 29]