Fix wrap guide spec again. Previously it only passed w/ a wide window.

This commit is contained in:
Nathan Sobo 2013-05-11 09:08:10 -06:00
parent 49cf92c2a2
commit 7dde2fec55

View File

@ -10,6 +10,7 @@ describe "WrapGuide", ->
atom.activatePackage('wrap-guide')
rootView.attachToDom()
rootView.height(200)
rootView.width(1500)
editor = rootView.getActiveView()
wrapGuide = rootView.find('.wrap-guide').view()
editor.width(editor.charWidth * wrapGuide.getDefaultColumn() * 2)
@ -35,7 +36,7 @@ describe "WrapGuide", ->
initial = wrapGuide.position().left
expect(initial).toBeGreaterThan(0)
fontSize = config.get("editor.fontSize")
config.set("editor.fontSize", fontSize * 2)
config.set("editor.fontSize", fontSize + 10)
expect(wrapGuide.position().left).toBeGreaterThan(initial)
expect(wrapGuide).toBeVisible()