Test correct editor in font size spec

This commit is contained in:
probablycorey 2013-04-30 11:48:09 -07:00
parent 16c892caa6
commit 471ac4976f

View File

@ -320,8 +320,9 @@ describe "Editor", ->
expect(editor.verticalScrollbarContent.height()).toBe buffer.getLineCount() * editor.lineHeight
newEditor = new Editor(editor.activeEditSession.copy())
editor.remove()
newEditor.attachToDom()
expect(editor.css('font-size')).toBe '30px'
expect(newEditor.css('font-size')).toBe '30px'
it "updates the position and size of selection regions", ->
config.set("editor.fontSize", 10)