Remove unneeded 'resize' event trigger. It's triggered by the helper.

This commit is contained in:
Nathan Sobo
2013-02-12 16:53:13 -07:00
parent 3625a55f68
commit 65bf13e211

View File

@@ -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) {"