mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Remove last use of atom.config in text editor spec
This commit is contained in:
@@ -5748,7 +5748,7 @@ describe "TextEditor", ->
|
||||
|
||||
expect(editor.getGrammar().name).toBe 'CoffeeScript'
|
||||
|
||||
describe "the softWrapAtPreferredLineLength config setting", ->
|
||||
describe "::setSoftWrapAtPreferredLineLength", ->
|
||||
it "soft wraps the editor at the preferred line length unless the editor is narrower", ->
|
||||
editor.setEditorWidthInChars(30)
|
||||
editor.setSoftWrapped(true)
|
||||
@@ -5760,15 +5760,15 @@ describe "TextEditor", ->
|
||||
editor.setEditorWidthInChars(10)
|
||||
expect(editor.lineTextForScreenRow(0)).toBe 'var '
|
||||
|
||||
describe "the softWrapHangingIndent setting", ->
|
||||
describe "::setSoftWrapIndentLength", ->
|
||||
it "controls how much extra indentation is applied to soft-wrapped lines", ->
|
||||
editor.setText('123456789')
|
||||
editor.setEditorWidthInChars(8)
|
||||
atom.config.set('editor.softWrap', true)
|
||||
atom.config.set('editor.softWrapHangingIndent', 2)
|
||||
editor.setSoftWrapped(true)
|
||||
editor.setSoftWrapIndentLength(2)
|
||||
expect(editor.lineTextForScreenRow(1)).toEqual ' 9'
|
||||
|
||||
atom.config.set('editor.softWrapHangingIndent', 4)
|
||||
editor.setSoftWrapIndentLength(4)
|
||||
expect(editor.lineTextForScreenRow(1)).toEqual ' 9'
|
||||
|
||||
describe "::getElement", ->
|
||||
|
||||
Reference in New Issue
Block a user