mirror of
https://github.com/atom/atom.git
synced 2026-02-11 07:05:11 -05:00
Pass tabText into EditSession explicitly on construction
This commit is contained in:
@@ -7,10 +7,14 @@ describe "EditSession", ->
|
||||
beforeEach ->
|
||||
fakeEditor =
|
||||
calcSoftWrapColumn: ->
|
||||
tabText: ' '
|
||||
|
||||
buffer = new Buffer(require.resolve('fixtures/sample.js'))
|
||||
editSession = new EditSession(editor: fakeEditor, buffer: buffer, autoIndent: false)
|
||||
editSession = new EditSession(
|
||||
editor: fakeEditor
|
||||
buffer: buffer
|
||||
tabText: ' '
|
||||
autoIndent: false
|
||||
)
|
||||
lineLengths = buffer.getLines().map (line) -> line.length
|
||||
|
||||
describe "cursor movement", ->
|
||||
|
||||
@@ -9,8 +9,7 @@ describe "Selection", ->
|
||||
buffer = new Buffer(require.resolve('fixtures/sample.js'))
|
||||
fakeEditor =
|
||||
calcSoftWrapColumn: ->
|
||||
tabText: ' '
|
||||
editSession = new EditSession(editor: fakeEditor, buffer: buffer)
|
||||
editSession = new EditSession(editor: fakeEditor, buffer: buffer, tabText: ' ')
|
||||
selection = editSession.getSelection()
|
||||
|
||||
describe ".deleteSelectedText()", ->
|
||||
|
||||
Reference in New Issue
Block a user