From 65bf13e211128c3a631bbebf87279a4c58cd0dd2 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 12 Feb 2013 16:53:13 -0700 Subject: [PATCH] Remove unneeded 'resize' event trigger. It's triggered by the helper. --- spec/app/editor-spec.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index faba56e9f..50ce83435 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -1351,7 +1351,6 @@ describe "Editor", -> it "changes the max line length and repositions the cursor when the window size changes", -> editor.setCursorBufferPosition([3, 60]) setEditorWidthInChars(editor, 40) - $(window).trigger 'resize' expect(editor.renderedLines.find('.line').length).toBe 19 expect(editor.renderedLines.find('.line:eq(4)').text()).toBe "left = [], right = [];" expect(editor.renderedLines.find('.line:eq(5)').text()).toBe " while(items.length > 0) {"