mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +03:00
Enable auto-indent for 1 more spec + 💄
This commit is contained in:
parent
502208dcf4
commit
9cb067f162
@ -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")
|
||||
|
@ -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]
|
||||
|
@ -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(" ")
|
||||
|
Loading…
Reference in New Issue
Block a user