From 8b3b033b0964ecce213d98d3ee41ea2e72af859d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 22 Aug 2013 18:14:09 -0700 Subject: [PATCH] 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. --- spec/edit-session-spec.coffee | 6 ++++++ 1 file changed, 6 insertions(+) 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])