mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
10 -> back to 2
This commit is contained in:
@@ -1330,12 +1330,12 @@ describe "Editor", ->
|
||||
expect(editor.renderedLines.find(".line:first").text()).toBe buffer.lineForRow(0)
|
||||
expect(editor.renderedLines.find(".line:last").text()).toBe buffer.lineForRow(6)
|
||||
|
||||
it "increases the width of the rendered lines element to be either the width of the longest line or the width of the scrollView (whichever is longer)", ->
|
||||
ffit "increases the width of the rendered lines element to be either the width of the longest line or the width of the scrollView (whichever is longer)", ->
|
||||
maxLineLength = editor.getMaxScreenLineLength()
|
||||
setEditorWidthInChars(editor, maxLineLength)
|
||||
widthBefore = editor.renderedLines.width()
|
||||
expect(widthBefore).toBe editor.scrollView.width() + 20
|
||||
buffer.change([[12,0], [12,0]], [1..maxLineLength*10].join(''))
|
||||
buffer.change([[12,0], [12,0]], [1..maxLineLength*2].join(''))
|
||||
expect(editor.renderedLines.width()).toBeGreaterThan widthBefore
|
||||
|
||||
describe "when lines are removed", ->
|
||||
|
||||
Reference in New Issue
Block a user