mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add test for foldable icons on soft wrapped lines
This commit is contained in:
@@ -637,6 +637,18 @@ describe "TextEditorComponent", ->
|
||||
nextAnimationFrame()
|
||||
expect(lineNumberHasClass(5, 'folded')).toBe false
|
||||
|
||||
describe "when soft wrapping is enabled", ->
|
||||
beforeEach ->
|
||||
editor.setSoftWrapped(true)
|
||||
nextAnimationFrame()
|
||||
componentNode.style.width = 16 * charWidth + editor.getVerticalScrollbarWidth() + 'px'
|
||||
component.measureHeightAndWidth()
|
||||
nextAnimationFrame()
|
||||
|
||||
it "doesn't add the foldable class for soft-wrapped lines", ->
|
||||
expect(lineNumberHasClass(0, 'foldable')).toBe true
|
||||
expect(lineNumberHasClass(1, 'foldable')).toBe false
|
||||
|
||||
describe "mouse interactions with fold indicators", ->
|
||||
[gutterNode] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user