Add failing spec

This commit is contained in:
Kevin Sawicki
2014-02-11 10:15:50 -08:00
parent 4d230a0517
commit d8da977b20

View File

@@ -2631,6 +2631,16 @@ describe "EditorView", ->
editorView.trigger 'editor:move-line-down'
expect(editor.getCursorBufferPosition()).toEqual [1, 2]
describe "when the line below is folder", ->
it "moves the line around the fold", ->
editor.setCursorBufferPosition([0, 0])
editor.foldBufferRow(2)
editorView.trigger 'editor:move-line-down'
expect(editor.getCursorBufferPosition()).toEqual [10, 0]
expect(buffer.lineForRow(0)).toBe ' var sort = function(items) {'
expect(buffer.lineForRow(10)).toBe 'var quicksort = function () {'
describe "when the cursor is on the last line", ->
it "does not move the line", ->
editor.moveCursorToBottom()