Trigger resize event on editor before wrap guide specs

This commit is contained in:
probablycorey
2013-03-05 09:43:38 -08:00
parent 8c1ec19797
commit 17fc679b25
2 changed files with 2 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ $ = require 'jquery'
_ = require 'underscore'
fs = require 'fs'
describe "Editor", ->
fdescribe "Editor", ->
[buffer, editor, cachedLineHeight] = []
getLineHeight = ->

View File

@@ -11,6 +11,7 @@ describe "WrapGuide", ->
editor = rootView.getActiveEditor()
wrapGuide = rootView.find('.wrap-guide').view()
editor.width(editor.charWidth * wrapGuide.getDefaultColumn() * 2)
editor.trigger 'resize'
describe "@initialize", ->
it "appends a wrap guide to all existing and new editors", ->