Add line number padding to expected width

This commit is contained in:
Kevin Sawicki
2013-02-04 15:34:41 -08:00
parent 3e7b75e9aa
commit bef965d863

View File

@@ -605,7 +605,7 @@ describe "Editor", ->
rootView.attachToDom()
config.set("editor.fontSize", 16 * 4)
expect(editor.gutter.css('font-size')).toBe "#{16 * 4}px"
expect(editor.gutter.width()).toBe(64)
expect(editor.gutter.width()).toBe(64 + editor.gutter.calculateLineNumberPadding())
it "updates lines if there are unrendered lines", ->
editor.attachToDom(heightInLines: 5)