mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 15:49:23 +03:00
Fix wrap guide spec again. Previously it only passed w/ a wide window.
This commit is contained in:
parent
49cf92c2a2
commit
7dde2fec55
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user