mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Fix spec to allow for 20 extra pixels to right of the lines
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user