Fix spec to allow for 20 extra pixels to right of the lines

This commit is contained in:
Nathan Sobo
2012-11-09 13:28:51 -07:00
parent e014f60f39
commit 4a3dbedb71

View File

@@ -1382,7 +1382,7 @@ fdescribe "Editor", ->
maxLineLength = editor.maxScreenLineLength()
setEditorWidthInChars(editor, maxLineLength)
widthBefore = editor.renderedLines.width()
expect(widthBefore).toBe editor.scrollView.width()
expect(widthBefore).toBe editor.scrollView.width() + 20
buffer.change([[12,0], [12,0]], [1..maxLineLength*2].join(''))
expect(editor.renderedLines.width()).toBeGreaterThan widthBefore