diff --git a/spec/edit-session-spec.coffee b/spec/edit-session-spec.coffee index 34dfe9a45..74d901658 100644 --- a/spec/edit-session-spec.coffee +++ b/spec/edit-session-spec.coffee @@ -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])