mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Revert "Revert "Add spec for inserting white-space-only lines""
This reverts commit fd17457c17.
This commit is contained in:
@@ -83,3 +83,11 @@ describe "Selection", ->
|
||||
selection.setBufferRange([[2, 0], [2, 10]])
|
||||
selection.destroy()
|
||||
expect(selection.marker.isDestroyed()).toBeTruthy()
|
||||
|
||||
describe ".insertText(text, options)", ->
|
||||
it "allows pasting white space only lines when autoIndent is enabled", ->
|
||||
selection.setBufferRange [[0, 0], [0, 0]]
|
||||
selection.insertText(" \n \n\n", autoIndent: true)
|
||||
expect(buffer.lineForRow(0)).toBe " "
|
||||
expect(buffer.lineForRow(1)).toBe " "
|
||||
expect(buffer.lineForRow(2)).toBe ""
|
||||
|
||||
Reference in New Issue
Block a user