mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 16:09:57 +03:00
Add spec for a fold causing a line to unwrap
This commit is contained in:
parent
03d5509cca
commit
8b7638998c
@ -275,6 +275,13 @@ fdescribe "Renderer", ->
|
||||
fold.destroy()
|
||||
expect(renderer.lineForRow(0).text).toBe 'var quicksort = function () {'
|
||||
|
||||
describe "when a fold causes a wrapped line to become shorter than the max line length", ->
|
||||
fit "unwraps the line", ->
|
||||
renderer.setMaxLineLength(50)
|
||||
renderer.createFold([[3, 0], [3, 15]])
|
||||
expect(renderer.lineForRow(3).text).toBe '... items.shift(), current, left = [], right = [];'
|
||||
expect(renderer.lineForRow(4).text).toBe ' while(items.length > 0) {'
|
||||
|
||||
describe "when the buffer changes", ->
|
||||
[fold1, fold2] = []
|
||||
beforeEach ->
|
||||
|
Loading…
Reference in New Issue
Block a user