mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Test that inserting lines re-renders the gutter
This commit is contained in:
@@ -567,6 +567,12 @@ describe "Editor", ->
|
||||
editor.insertText(oneHundredLines)
|
||||
expect(editor.gutter.lineNumbers.outerWidth()).toBe editor.charWidth * 3
|
||||
|
||||
describe "when the insertion of lines causes the editor to scroll", ->
|
||||
it "renders line numbers correctly", ->
|
||||
oneHundredLines = [0..100].join("\n")
|
||||
editor.insertText(oneHundredLines)
|
||||
expect(editor.gutter.lineNumbers.find('.line-number').length).toBe 6
|
||||
|
||||
describe "when wrapping is on", ->
|
||||
it "renders a • instead of line number for wrapped portions of lines", ->
|
||||
editor.setMaxLineLength(50)
|
||||
|
||||
Reference in New Issue
Block a user