mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Trigger resize event on editor before wrap guide specs
This commit is contained in:
@@ -9,7 +9,7 @@ $ = require 'jquery'
|
||||
_ = require 'underscore'
|
||||
fs = require 'fs'
|
||||
|
||||
describe "Editor", ->
|
||||
fdescribe "Editor", ->
|
||||
[buffer, editor, cachedLineHeight] = []
|
||||
|
||||
getLineHeight = ->
|
||||
|
||||
@@ -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", ->
|
||||
|
||||
Reference in New Issue
Block a user