Remove last use of atom.config in text editor spec

This commit is contained in:
Max Brunsfeld
2016-08-09 10:20:49 -07:00
parent 7035368c33
commit 6346d05505

View File

@@ -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", ->