mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Add explicit call to setSoftWrap in specs
This is now required now that setting the soft wrap column does not cause wrapping unless soft wrap is enabled.
This commit is contained in:
@@ -102,6 +102,7 @@ describe "EditSession", ->
|
||||
|
||||
describe "when soft-wrap is enabled and code is folded", ->
|
||||
beforeEach ->
|
||||
editSession.setSoftWrap(true)
|
||||
editSession.setSoftWrapColumn(50)
|
||||
editSession.createFold(2, 3)
|
||||
|
||||
@@ -325,6 +326,7 @@ describe "EditSession", ->
|
||||
describe ".moveCursorToBeginningOfLine()", ->
|
||||
describe "when soft wrap is on", ->
|
||||
it "moves cursor to the beginning of the screen line", ->
|
||||
editSession.setSoftWrap(true)
|
||||
editSession.setSoftWrapColumn(10)
|
||||
editSession.setCursorScreenPosition([1, 2])
|
||||
editSession.moveCursorToBeginningOfLine()
|
||||
@@ -344,6 +346,7 @@ describe "EditSession", ->
|
||||
describe ".moveCursorToEndOfLine()", ->
|
||||
describe "when soft wrap is on", ->
|
||||
it "moves cursor to the beginning of the screen line", ->
|
||||
editSession.setSoftWrap(true)
|
||||
editSession.setSoftWrapColumn(10)
|
||||
editSession.setCursorScreenPosition([1, 2])
|
||||
editSession.moveCursorToEndOfLine()
|
||||
@@ -363,6 +366,7 @@ describe "EditSession", ->
|
||||
describe ".moveCursorToFirstCharacterOfLine()", ->
|
||||
describe "when soft wrap is on", ->
|
||||
it "moves to the first character of the current screen line or the beginning of the screen line if it's already on the first character", ->
|
||||
editSession.setSoftWrap(true)
|
||||
editSession.setSoftWrapColumn(10)
|
||||
editSession.setCursorScreenPosition [2,5]
|
||||
editSession.addCursorAtScreenPosition [8,7]
|
||||
@@ -1778,6 +1782,7 @@ describe "EditSession", ->
|
||||
describe ".cutToEndOfLine()", ->
|
||||
describe "when soft wrap is on", ->
|
||||
it "cuts up to the end of the line", ->
|
||||
editSession.setSoftWrap(true)
|
||||
editSession.setSoftWrapColumn(10)
|
||||
editSession.setCursorScreenPosition([2, 2])
|
||||
editSession.cutToEndOfLine()
|
||||
@@ -2234,6 +2239,7 @@ describe "EditSession", ->
|
||||
|
||||
describe "when soft wrap is enabled", ->
|
||||
it "deletes the entire line that the cursor is on", ->
|
||||
editSession.setSoftWrap(true)
|
||||
editSession.setSoftWrapColumn(10)
|
||||
editSession.setCursorBufferPosition([6])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user