From a4411ab2caa6910abdc8bbd856dd446165d69c46 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 22 Aug 2013 17:40:16 -0700 Subject: [PATCH] Update specs for resize handler changes --- spec/editor-spec.coffee | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/editor-spec.coffee b/spec/editor-spec.coffee index 71733f0a8..99a097616 100644 --- a/spec/editor-spec.coffee +++ b/spec/editor-spec.coffee @@ -1670,14 +1670,10 @@ describe "Editor", -> editor.edit(otherEditSession) expect(editor.renderedLines.find('.line').length).toBe(1) - it "unwraps lines and cancels window resize listener when softwrap is disabled", -> + it "unwraps lines when softwrap is disabled", -> editor.toggleSoftWrap() expect(editor.renderedLines.find('.line:eq(3)').text()).toBe ' var pivot = items.shift(), current, left = [], right = [];' - spyOn(editor, 'setSoftWrapColumn') - $(window).trigger 'resize' - expect(editor.setSoftWrapColumn).not.toHaveBeenCalled() - it "allows the cursor to move down to the last line", -> _.times editor.getLastScreenRow(), -> editor.moveCursorDown() expect(editor.getCursorScreenPosition()).toEqual [editor.getLastScreenRow(), 0]