This commit is contained in:
Wliu
2017-02-06 22:59:47 -05:00
parent e5382215e5
commit 29c956e66f

View File

@@ -5961,7 +5961,7 @@ describe "TextEditor", ->
expect(editor.getGrammar().name).toBe 'CoffeeScript'
describe "softWrapAtPreferredLineLength", ->
it "soft wraps the editor at the preferred line length unless the editor is narrower", ->
it "soft wraps the editor at the preferred line length unless the editor is narrower or the editor is mini", ->
editor.update({
editorWidthInChars: 30
softWrapped: true
@@ -5974,6 +5974,9 @@ describe "TextEditor", ->
editor.update({editorWidthInChars: 10})
expect(editor.lineTextForScreenRow(0)).toBe 'var '
editor.update({mini: true})
expect(editor.lineTextForScreenRow(0)).toBe 'var quicksort = function () {'
describe "softWrapHangingIndentLength", ->
it "controls how much extra indentation is applied to soft-wrapped lines", ->
editor.setText('123456789')