Enable auto-indent for 1 more spec + 💄

This commit is contained in:
Nathan Sobo 2012-05-31 18:22:54 -06:00
parent 502208dcf4
commit 9cb067f162
3 changed files with 4 additions and 4 deletions

View File

@ -1324,15 +1324,15 @@ describe "Editor", ->
describe "when editing a line that spans multiple screen lines", ->
beforeEach ->
editor.setSoftWrap(true, 50)
editor.autoIndent = true
describe "when newline is inserted", ->
it "indents cursor based on the indentation of previous buffer line", ->
editor.autoIndent = true
editor.setCursorBufferPosition([4, 29])
editor.insertText("\n")
expect(editor.buffer.lineForRow(5)).toEqual(" ")
describe "when text that closes a scope entered", ->
describe "when text that closes a scope is entered", ->
it "outdents the text", ->
editor.setCursorBufferPosition([4, 29])
editor.insertText("\n")

View File

@ -44,4 +44,4 @@ describe "FoldSuggester", ->
expect(foldSuggester.rowRangeForFoldAtBufferRow(0)).toEqual [0, 20]
expect(foldSuggester.rowRangeForFoldAtBufferRow(1)).toEqual [1, 17]
expect(foldSuggester.rowRangeForFoldAtBufferRow(2)).toBeNull()
expect(foldSuggester.rowRangeForFoldAtBufferRow(19)).toEqual [19, 20]
expect(foldSuggester.rowRangeForFoldAtBufferRow(19)).toEqual [19, 20]

View File

@ -335,4 +335,4 @@ describe "Selection", ->
editor.addCursorAtScreenPosition([4, 29])
editor.insertText("\n")
expect(editor.buffer.lineForRow(2)).toEqual(" ")
expect(editor.buffer.lineForRow(6)).toEqual(" ")
expect(editor.buffer.lineForRow(6)).toEqual(" ")