mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Add spec for line highlight after backspace
This commit is contained in:
parent
f2306f444a
commit
2bea67057b
@ -1664,6 +1664,11 @@ describe "Editor", ->
|
||||
expect(editor.find('.line.cursor-line').length).toBe 1
|
||||
expect(editor.find('.line.cursor-line').text()).toBe buffer.lineForRow(1)
|
||||
|
||||
fit "when a newline is deleted with backspace, the line of the new cursor position is highlighted (regression)", ->
|
||||
editor.setCursorScreenPosition([1,0])
|
||||
editor.backspace()
|
||||
expect(editor.find('.line.cursor-line').length).toBe 1
|
||||
|
||||
describe "when there is wrapping", ->
|
||||
beforeEach ->
|
||||
editor.setSoftWrap(true)
|
||||
|
Loading…
Reference in New Issue
Block a user